#18859: sample static folder when creating project
--------------------------------------------+--------------------
     Reporter:  revolunet                   |      Owner:  nobody
         Type:  Uncategorized               |     Status:  new
    Component:  Core (Management commands)  |    Version:  1.4
     Severity:  Normal                      |   Keywords:
 Triage Stage:  Unreviewed                  |  Has patch:  0
Easy pickings:  0                           |      UI/UX:  0
--------------------------------------------+--------------------
 When beginners starts their first django project, they struggle at their
 first staticfiles setup.

  - the official tuto doesnt even talk about static files
  - they usually have to hardcode the path in settings.py
  - they usually have to add an entry to their urls.py
  - they have to understand all the staticfiles process and complexity and
 long doc before using a single CSS or image

 So i was wondering what do you guys think about setting up a "default"
 static dir when creating a new project with django-admin.py
 This would just be a demo folder, with a sample image, but working without
 pain for the beginners.

 this could be implemented like this (from the project_template) :

  - add a /static folder in the project directory with a sample image
  - add an entry for staticfiles to project.urls.py
  - setup the correct settings

 Advantages of this would be :

  - less friction for beginners
  - demonstration of good practices when dealing with static files
 (security, names..)
  - better understanding on staticfiles capabilities

 My goal is to make django beginners feel more confortable

 An idea/suggestion ?

-- 
Ticket URL: <https://code.djangoproject.com/ticket/18859>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to