Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Collectstatic command is not available in Django 1.4

So I'm trying to run collectstatic to push some files to AWS, but I keep getting a "unknown command" error. When running manage.py help I get a list of subcommands, and sure enough collectstatic is not there. I have looked also in the installed apps part of settings.py and the staticfiles app is installed. Python is version 2.7 and Django is 1.4

This project was not built by me. I'm just a frontend developer who has been dragged into the world of programming D: Maybe the solution is really easy.

Thanks!

like image 307
Askdesigners Avatar asked Dec 05 '22 13:12

Askdesigners


1 Answers

Check settings.py for django.contrib.staticfiles in INSTALLED_APPS and django.core.context_processors.static in TEMPLATE_CONTEXT_PROCESSORS

like image 54
sneawo Avatar answered Dec 18 '22 04:12

sneawo



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!