I'm curious too ;-). I suspect you can do pretty much anything at the project level that you can do at the app level but am not a pro in that space by any measure. This might be a useful read:
https://stackoverflow.com/questions/4879036/django-projects-vs-apps
Regards,
Bernd.
Kubilay Yazoğlu wrote:
https://stackoverflow.com/questions/4879036/django-projects-vs-apps
Regards,
Bernd.
Kubilay Yazoğlu wrote:
Hi there. I have only one week of experience in Django, some things aren't clear to me yet.--
I want to create a page where users can access by clicking on a button in homepage.Since this page contains plain text and there is no functionality in it, it does not have be in any of the apps. But since I had to write its view function in somewhere, I've written it in the same view file of homepage (That's my thought. Correct me if I'm wrong)
First question is, where to define its view function? As I said I've defined it in the same view file of homepage. Not sure if that's the right way.Secondly, how to define its url? I tried the following code but it does not work. I get this error when I click on the button in homepage: The current URL,learnmore.html
, didn't match any of these.
url(r'^learnmore/$', learnmore_view)
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+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
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/d6750ede-da18-406a-a1e5-2336827b6ae3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment