Homepage in Django

26 views
Skip to first unread message

Iuri Machado

unread,
Sep 27, 2013, 8:54:39 AM9/27/13
to django...@googlegroups.com
Hello everyone, I've got a silly question. 

Let's say I've create a project called CAFis. My folder structure should be like:

CAFis
  - CAFis
  |  - __init__.py
  |  - settings.py
  |  - urls.py
  |  - wsgi.py

If I want to create a homepage for my project, should I create a views.py, inside the subfolder CAFis, with only a function called index and then create a templates/static subfolder inside the subfolder CAFis?

(New structure)

CAFis
  - CAFis
  |  - templates
  |  |  - index.html
  |
  |  - static
  |  |  - foo.js
  |  |  - foo.css
  |
  |  - __init__.py
  |  - settings.py
  |  - urls.py
  |  - views.py
  |  - wsgi.py

Thanks in advance!

I.

Rafael E. Ferrero

unread,
Sep 27, 2013, 9:02:27 AM9/27/13
to django...@googlegroups.com
Thats its one aproach other its to handle directly with your webserver. I delegate to webserver all static stuff and leave django to handle dinamic thing.


see ya!


2013/9/27 Iuri Machado <imet...@gmail.com>

--
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 http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.



--
Rafael E. Ferrero

Iuri Machado

unread,
Sep 27, 2013, 9:04:46 AM9/27/13
to django...@googlegroups.com
Thank you buddy! :)
Reply all
Reply to author
Forward
0 new messages