python - How can I set up Debian x86_64 so a Django project sees django.contrib.staticfiles? -
I have a new Debian VPS, and I'm trying to design a project that is django.contrib Not seeing staticfiles. *. There has not been such a change since doing a "PEP installed diego-static file".
What is the best way to do such a good job that such Django projects will run?
- Edit -
I tried to uninstall Django and then install it from PIP and one virtualenen. As a result, another error has occurred, which failed to import execute_manager. The terminal output was:
proceed (y / n)? Y has successfully canceled the Gunkorn Root @ PS306627: / Home / CGS / Progmatometer # Exit (pragmatometerenvironment) cjsh @ ps306627: ~ / pragmatometer $ pip Uninstaller Django Uninstalling Django: / home / cjsh / pragmatometerenvironment / bin / django-admin py / home / cjsh / pragmatometerenvironment / lib / python2.6 / site-package / Django-1.6.3-py2.6.egg-info /home/cjsh/pragmatometerenvironment/lib/python2.6/site-packages/django Forward Increase (y / n)? Y successfully uninstall Django (pragmatometerenvironment) cjsh @ ps306627: ~ / pragmatometer $ pip Install DJ Ango Download / Unpacking Django Download Django-1.6.3.tar.gz (6.6Mb): 6.6Mb Package being downloaded Setup.py egg_info django Warning: There is no pre-indexed file that matches the '__pycache__' found under the directory '*' Warning: Any previously associated files that match '* .py [co]' Could not find '*' compiled package Is: django 644 to 755 warning creation / mode of script- 2.6 / django-admin.py: Directory '*' Warning does not contain any previously included file that matches' __pycache__ ':' *. Successfully installing 755 of /home/cjsh/pragmatometerenvironment/bin/django-admin.py under directory '*' ... (pragmatometerenvironment) cjsh @ ps306627: ~ / pragmatometer $ pip installed gunicorn download / unpacking gonocorn Download Gynikornan-18.0.tar.gz (366 KB): 366 KB Download Download Packaging Running setup.py egg_info for Gogocard alert: '* under *' docs' warning. No pre-selected file matching '.pc' was found: '* .pyo' under the 'Docs' warning, any pre-existing file matching '* .pyc' found under the directory 'Test' warning. Was not: There was no previous file matching '* .pyo' found under the Directory 'Test' warning: '*. Directory 'Examples' Warning: "Any pre-contained files that match the .pyo" are not found under the "Examples" compile package is being installed: Running for Gnichorn Running Setup / Gnoran Warning is: '*. Under the directory 'Docs' warning: No pre-selected file matching' * .pyo 'under' Docs' Warning was not found: 'no previous-file matching * .pyc' is included 'test 'Found under warnings: no previously-included files matched' * .pyo 'directory found under the' test 'warning: Any previously-included files that match' * .pyc 'are not under' Examples' warning Found: match with '' .pyo Any pre-contained files containing "not found under instances" Installing the GonicornPaster script in / home / cjsh / pragmatometerenvironment / bin / Installing the GNochon script in / home / cjsh / pragmatometerenvironment / bin / / cjsh / pragmatometerenvironment Installing Guncorn_DayJongo script in / bin has successfully installed gun cleaning ... (pragmatometerenvironment) cjsh @ ps306627: ~ / pragmatometer $ python manage.py Driver traceback (most recent call final): File "manage.py", Punk End 2, & lt; Module & gt; django.core.management Import execute_manager from importError: name execute_manager What I saw was irritated at an manage.py that was out of sync with the new version of the system's running python. / P>
New, working, manage.py, commented with old, this is:
#! / Usr / bin / env Python Import OS, if sys if __name__ == "__main__": os.environ.setdefault ("DJANGO_SETTINGS_MODULE", "Pargameter Settings") django.core.management import execute_from_command_line ##! / usr / bin / env dragon #from django from execute_from_command_line (sys.argv) Core.management come Execute execute_manager #import ap #try: # imp.find_module ('Settings') # Assumed to be in the same directory. #exceptErrorError: # import sys # sys.stderr.write ("Error: In the directory containing% r The 'settings.py' file can not be found. It seems that you have customized things. \ NYou have to run django-admin.py, it is going through your settings module. \ N "% __file__) # sys .exit (1) # #import Settings # # _____name__ == "__main__": # execute_manager (settings)
Comments
Post a Comment