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 <[email protected] > <javascript:>> 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 [email protected] <javascript:>. > > To post to this group, send email to [email protected] > <javascript:>. > > 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 [email protected]. To post to this group, send email to [email protected]. 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.

