Which is the correct file structure for static files
Putting the static files under the individual project as shown with
"home' below:
├── archive
│ ├── archive
│ │ ├── __init__.py
│ │ ├── __init__.pyc
│ │ ├── settings.py
│ │ ├── settings.pyc
│ │ ├── urls.py
│ │ └── wsgi.py
│ ├── home
│ │ ├── admin.py
│ │ ├── admin.pyc
│ │ ├── __init__.py
│ │ ├── __init__.pyc
│ │ ├── models.py
│ │ ├── models.pyc
│ │ ├── static
│ │ │ ├── home.css
│ │ │ ├── images
│ │ │ └── __init__.py
│ │ ├── tests.py
│ │ └── views.py
│ ├── __init__.py
│ ├── manage.py
│ └── templates
│ ├── admin
│ │ ├── base_site.html
│ │ └── __init__.py
│ ├── home
│ │ ├── index2.html
│ │ ├── index.html
│ │ └── __init__.py
│ └── __init__.py
or should they be under the project "root" as shown below.
├── archive
│ ├── archive
│ │ ├── __init__.py
│ │ ├── __init__.pyc
│ │ ├── settings.py
│ │ ├── settings.pyc
│ │ ├── urls.py
│ │ └── wsgi.py
│ ├── home
│ ├── __init__.py
│ │ ├── admin.py
│ │ ├── admin.pyc
│ │ ├── __init__.py
│ │ ├── __init__.pyc
│ │ ├── models.py
│ │ ├── models.pyc
│ │ ├── tests.py
│ │ └── views.py
│ ├── static
│ │ └── __init__.py
| | |___home
│ │ ├── home.css
│ │ ├── images
| | django.gif
│ ├── manage.py
│ └── templates
│ ├── admin
│ │ ├── base_site.html
│ │ └── __init__.py
│ ├── home
│ │ ├── index2.html
│ │ ├── index.html
│ │ └── __init__.py
│ └── __init__.py
The second way seems to be the more logical but the tutorial set things
up as shown in the first. Either way, I have not been able to get either
one working (serving up static files). Since there are dozens of queries
about serving static files and dozens of ways shown - none of which
worked for me and many of which conflicted with each other - all I want
is the answer to this one question and nothing else. After that I will
work with the next step.
I'm using Debian 8 (jessie) os. This complicates things a bit because
Debian takes care of a lot of the setup automatically that other Linux
versions don't. I'm using Django 1.8 and Python 3.4
Please use the KISS principle on this one.
Thanks in advance
Gary R.
--
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 http://groups.google.com/group/django-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/563E8F80.9050908%40verizon.net.
For more options, visit https://groups.google.com/d/optout.