Hello Marcio,

Welcome to this group. I will try answer all of your questions.

*Create "static" and "templates" on the project root (C:\sites\mysite) ?*
The static folder and templates folder should be on the project root, yes.

*Create a "theme" folder on the project root, and put static and template 
inside *
Don't create a theme folder. Create an app with the command:

python manage.py startapp theme_name

It will create that folder for you with the necessary files. Then add the 
theme_name to your settings.py file in INSTALLED_APPS *at the top*!

*Create a "theme" folder on the project root, and put static, template, and 
__init__.py inside, and call it an "app" ?*
Inside this app folder that I just answered on the second question, you can 
create a templates folder. Inside this folder you can copy some of the 
templates that you would like to modify. To get the templates run this 
command:

python manage.py collecttemplates

 Then the files will be in the templates folder in the project root. Move 
the files that you want and put them in the theme_name/templates folder and 
start modifying. 


On Saturday, December 5, 2015 at 5:46:59 AM UTC+1, Márcio Moreira wrote:
>
> Hello friends,
>
> I am a beginner on Mezzanine and Django, and I am very confused about 
> where is the "right" place to put static and templates files on the folder 
> structure of a mezzanine project.
>
> Doing this:
> cd \sites
> mezzanine-project mysite
>
> I got the following folder structure:
> C:\SITES
> \---mysite
>     |   .gitignore
>     |   .hgignore
>     |   fabfile.py
>     |   manage.py
>     |   requirements.txt
>     |   __init__.py
>     |
>     +---deploy
>     |       ...
>     |    
>     \---mysite
>             local_settings.py
>             settings.py
>             urls.py
>             wsgi.py
>             __init__.py
>
>
> Should I:
>
>    - Create "static" and "templates" on the project root 
>    (C:\sites\mysite) ?
>    - Create a "theme" folder on the project root, and put static and 
>    template inside ?
>    - Create a "theme" folder on the project root, and put static, 
>    template, and __init__.py inside, and call it an "app" ?
>    - Do something else?
>    
> Being a beginner I hope you understand I need to know the right or 
> canonical way of organizing static and templates.
> Many sources on the web are sometimes contradictory on this subject, and 
> the Mezzanine docs are not clear enough (to me) about this.
>
> Thank you,
> Marcio
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to