¡@

Home 

python Programming Glossary: project_dir

Django Model Sync Table

http://stackoverflow.com/questions/1115238/django-model-sync-table

DO THIS UNLESS YOU CAN AFFORD TO LOSE ALL YOUR DATA python PROJECT_DIR manage.py syncdb the next option is to use the various sql options..

Unable to serve static files like css, js in django python

http://stackoverflow.com/questions/15081893/unable-to-serve-static-files-like-css-js-in-django-python

settings.py file settings are below settings.py import os PROJECT_DIR os.path.abspath os.path.dirname __file__ DEBUG True MEDIA_ROOT.. __file__ DEBUG True MEDIA_ROOT os.path.join PROJECT_DIR 'media' MEDIA_URL ' media ' STATIC_ROOT os.path.join PROJECT_DIR.. 'media' MEDIA_URL ' media ' STATIC_ROOT os.path.join PROJECT_DIR 'static' STATIC_URL ' static ' STATICFILES_DIRS os.path.join..

Why can't I get my static dir to work with django 1.3?

http://stackoverflow.com/questions/6363728/why-cant-i-get-my-static-dir-to-work-with-django-1-3

to use absolute paths not relative paths. os.path.join PROJECT_DIR 'proj_static' Then you can place your css main.css file in proj_static..