Re: Django Suit admin panel - Static files configuration Django 1.6 not working
I am rebuilding a new server from scratch now. New IP: Same setup with new IP from Digital Ocean 1click install - http://162.243.58.204/ I am going to try and setup the Static files directory again. Since they are using Django 1.6 and the command makemigration and migrate are not in 1.6 Should i start using Django 1.8 or 1.9 before configuring the server? On Thursday, June 2, 2016 at 10:35:20 AM UTC-4, luisza14 wrote: > > Where is STATIC_ROOT ? > > static_root path needs to match with nginx /static location. > > > > El miércoles, 1 de junio de 2016, Roger Lanoue jr <ro...@rljmedia.com > > escribió: > > Hi Django users group. > > I am test and learning django out. I have a testing server and got my > test page up. > > Started to play with the Django suit control panel and ran in to some > problems with my setup. > > Server: Digital Ocean one click install. > > Ubuntu 14.04 > > Nginx > > Postgres > > python 2.7 > > django 1.6 > > Test server > > http://162.243.201.237/ > > > > Admin panel: http://django-suit.readthedocs.io/en/develop/ > > http://162.243.201.237/admin/ > > user: demo > > pasword: demo > > Static file command I ran > > python manage.py collectstatic > > > > results: 0 static files copied, 116 unmodified. > > Setting.py: Basics > > DEBUG = False > > TEMPLATE_DEBUG = False > > ALLOWED_HOSTS = ['*'] > > > > STATIC_URL = '/static/' > > STATICFILES_DIRS = [ > > os.path.join(BASE_DIR, "static"), > > '/home/django/django_project/static/', > > Nginx setting: > > # Your Django project's media files - amend as required > > location /media { > > alias /home/django/django_project/django_project/media; > > } > > # your Django project's static files - amend as required > > location /static { > > alias /home/django/django_project/django_project/static; > > } > > # Proxy the static assests for the Django Admin panel > > location /static/admin { > >alias > /usr/lib/python2.7/dist-packages/django/contrib/admin/static/admin/; > > } > > location / { > > proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; > > proxy_set_header Host $http_host; > > proxy_redirect off; > > proxy_pass http://app_server; > > } > > My goal is to get the Django suit working. I do not see anything in my > static files directory for the admin suit so the css can be applied. > > I am missing something very simple to get this working. > > Thank you for taking time to look at this and wish to get some clues. > > Roger > > > > -- > > You received this message because you are subscribed to the Google > Groups "Django users" group. > > To unsubscribe from this group and stop receiving emails from it, send > an email to django-users...@googlegroups.com . > > To post to this group, send email to django...@googlegroups.com > . > > Visit this group at https://groups.google.com/group/django-users. > > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/f0c19816-b477-43ba-9953-d4793bdfac80%40googlegroups.com > . > > For more options, visit https://groups.google.com/d/optout. > > > > -- > "La utopía sirve para caminar" Fernando Birri > > > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/b3a7b96a-d6c9-4595-b989-a987ada38fe9%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Django suit and Static files not working in Django 1.6
Hello All. I learning my first Django experience and I am making some headway. I am stuck on my test server and Django suit admin. I my goal is to get the new admin from Django suit to work. *Server setup* Ubuntu 14.04 ( A Digital Ocean VPS with one click install ) Django Version 1.6 Python: 2.7 Nginx Postgres *Test server * http://162.243.201.237/ *Admin (with django suit installed ) * http://django-suit.readthedocs.io/en/develop/ http://162.243.201.237/admin/ User: Demo password: Demo The css is being applied to the djando suit . *Ran command:* python manage.py collectstatic Results: 0 static files copied, 116 unmodified. *My setting.py basics* DEBUG = False TEMPLATE_DEBUG = False STATIC_URL = '/static/' STATICFILES_DIRS = [ os.path.join(BASE_DIR, "static"), '/home/django/django_project/static/', When I look in to the static directory. nothing had been copied. Thank your for taking time to look at this and also sharing with me any clues on how to fix this. Roger -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/ee2b40b1-0716-4f5b-b4f1-8f35a60d54f6%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Django Suit admin panel - Static files configuration Django 1.6 not working
Hi Django users group. I am test and learning django out. I have a testing server and got my test page up. Started to play with the Django suit control panel and ran in to some problems with my setup. *Server: Digital Ocean one click install.* Ubuntu 14.04 Nginx Postgres python 2.7 django 1.6 *Test server* http://162.243.201.237/ *Admin panel: *http://django-suit.readthedocs.io/en/develop/ http://162.243.201.237/admin/ user: demo pasword: demo *Static file command I ran* python manage.py collectstatic results: 0 static files copied, 116 unmodified. *Setting.py: Basics * DEBUG = False TEMPLATE_DEBUG = False ALLOWED_HOSTS = ['*'] STATIC_URL = '/static/' STATICFILES_DIRS = [ os.path.join(BASE_DIR, "static"), '/home/django/django_project/static/', *Nginx setting:* # Your Django project's media files - amend as required location /media { alias /home/django/django_project/django_project/media; } # your Django project's static files - amend as required location /static { alias /home/django/django_project/django_project/static; } # Proxy the static assests for the Django Admin panel location /static/admin { alias /usr/lib/python2.7/dist-packages/django/contrib/admin/static/admin/; } location / { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $http_host; proxy_redirect off; proxy_pass http://app_server; } My goal is to get the Django suit working. I do not see anything in my static files directory for the admin suit so the css can be applied. I am missing something very simple to get this working. Thank you for taking time to look at this and wish to get some clues. Roger -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/f0c19816-b477-43ba-9953-d4793bdfac80%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.