Re: Easy way to create pretty pages with nav?
Hi I think a 'problem' of Django is that it is produced by programmers and doesn`t mention that programming is the minor important part of a successfull site. Far more important is content and the visual way content is presented in a brain catching way to the customer. Both isn`t comprised in Django. So looking from outward Django's main task may by to get rid of nasty programming details that a layouter can concentrate more on important tasks - in Django speak 'templates' the production of not beeing part of Django. The same with the app engine patch project (AEP) dedicated to run native Django on Google appEngine (GAE) http://code.google.com/p/app-engine-patch/wiki/Documentation http://groups.google.com/group/app-engine-patch In my view both Django and appEnginePatch exist to make life easier for layouters and journalists. Konrad --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: Easy way to create pretty pages with nav?
Thanks Guys! On Apr 6, 3:55 am, Briel wrote: > I mostly agree with andy, getting a base template done as a static > page > would be a great place to start, and how you get it done is up to you > and how you work best. > > Step 2 imo would be to add block tags the correct places. Basically > you > want to place your tags in such a way that you only need to repeat the > as less html as possible if you want to change things, but if you > don't want > to change things, they should still work. If your site is simple > enough adding > a variable like {{ context }} might be enough, but building a > structure with > blocks would be a good solution long term. > So if you wanted to have a sub-nav-bar in some pages, you could > implement > the html/css needed in the base template so all that was needed was > some > links, and then just put some block tags within the html that some > template > could fill with the relevant info. > > ~Jakob > > On 6 Apr., 10:35, andybak wrote: > > > Nothing wrong with designing your site using visual tools. Get your > > basic page look and feel set up as a single static HTML + CSS. That > > page becomes your base template. > > > Stick a single {{ content }} placeholder in and you can start > > inserting dynamic content into your template from any of your views. > > > Your navigation might become: > > > > > {% for page in pages%} > > {{page.name}} > > {% endfor %} > > > > > As other parts of your page become dynamic then replace them in the > > same way. > > > And on the subject of blogs - assuming you start with a working Django > > install and the HTML+CSS already designed then I think anyone > > reasobably familiar with Django could get a working blog in around > > five minutes :) > > > Andy > > > On Apr 5, 9:10 pm, dartdog1 wrote: > > > > So, is a reasonable way to do initial page design to just use some > > > sort of visual tool (suggestions?)(that hopefully does a good job of > > > separating the html and css) then go back in and hack in the Django > > > tags? and blocks?? Or am I just off in left field? > > > > On Apr 5, 10:43 am, Alex Gaynor wrote: > > > > > On Sun, Apr 5, 2009 at 11:38 AM, zayatzz > > > > wrote: > > > > > > Im just as new and i ran into exactly the same problem. > > > > > > As it seems, some people suggest to create new app for just font page > > > > > (or generic public view) and create index.html as this apps front page > > > > > template. > > > > > > I think it is possible to create views.py and index.html for the > > > > > project too. > > > > > > Im sure someone will clear all this for us soon enough :). > > > > > > For now i went for creating app for site. This app will hold stuff > > > > > like website title, meta words, language parameters and website > > > > > encoding - you'll declare them in your index html anyway, so why not > > > > > store them in your database, so you can change them from admin, > > > > > whenever you want. > > > > > > Alan > > > > > > On Apr 5, 5:57 pm, dartdog1 wrote: > > > > > > Ok I'm super new, skimmed the doc & tutorial but I just can't figure > > > > > > out how to go about really building the Public view side? I don't > > > > > > see > > > > > > how to apply simple css. how to set up simple stuff like navigation > > > > > > tabs and links... > > > > > > > I'm implementing on GAE with the AEP and have gotten the sample app > > > > > > up > > > > > > and going, have more docs to read there. But it seems to me that I'm > > > > > > missing something basic, and when I search for stuff like css and > > > > > > page > > > > > > layout I don't get much help.. > > > > > > > For instance the sample AEP poll app has no style, I was trying to > > > > > > figure out how to apply some,, but at a larger level how to do that > > > > > > for a site, with navigation, and being able to take advantage of the > > > > > > ability to add new apps later? > > > > > > > I notice that I see a number of people raving about how much they > > > > > > love > > > > > > Django on their WP or Blogger blogs,, Which tells me that even > > > > > > designing a simple Bog is not that easy in Django. Yes I have seen a > > > > > > few Django blogs, but not much discussion of how they did it, and > > > > > > how > > > > > > they apply design. For some they seem to use a mix of other tools > > > > > > and > > > > > > some undisclosed black magic? > > > > > > > AEP has two sample blogs but truthfully they look pretty primitive. > > > > > > > What am I missing? > > > > > Yes, you can absolutely create a views.py that isn't in a application, > > > > views > > > > are just python functions, so they can live wherever they want, > > > > likewise so > > > > long as your index.html is in your TEMPLATE_DIRS folder then it can be > > > > used > > > > from wherever you like. > > > > > Alex > > > > > -- > > > > "I disapprove of what you say, but I will defend to the death your > > > > right to > > > > say it." --Voltaire > > > > "The people's good
Re: Easy way to create pretty pages with nav?
I mostly agree with andy, getting a base template done as a static page would be a great place to start, and how you get it done is up to you and how you work best. Step 2 imo would be to add block tags the correct places. Basically you want to place your tags in such a way that you only need to repeat the as less html as possible if you want to change things, but if you don't want to change things, they should still work. If your site is simple enough adding a variable like {{ context }} might be enough, but building a structure with blocks would be a good solution long term. So if you wanted to have a sub-nav-bar in some pages, you could implement the html/css needed in the base template so all that was needed was some links, and then just put some block tags within the html that some template could fill with the relevant info. ~Jakob On 6 Apr., 10:35, andybak wrote: > Nothing wrong with designing your site using visual tools. Get your > basic page look and feel set up as a single static HTML + CSS. That > page becomes your base template. > > Stick a single {{ content }} placeholder in and you can start > inserting dynamic content into your template from any of your views. > > Your navigation might become: > > > {% for page in pages%} > {{page.name}} > {% endfor %} > > > As other parts of your page become dynamic then replace them in the > same way. > > And on the subject of blogs - assuming you start with a working Django > install and the HTML+CSS already designed then I think anyone > reasobably familiar with Django could get a working blog in around > five minutes :) > > Andy > > On Apr 5, 9:10 pm, dartdog1 wrote: > > > So, is a reasonable way to do initial page design to just use some > > sort of visual tool (suggestions?)(that hopefully does a good job of > > separating the html and css) then go back in and hack in the Django > > tags? and blocks?? Or am I just off in left field? > > > On Apr 5, 10:43 am, Alex Gaynor wrote: > > > > On Sun, Apr 5, 2009 at 11:38 AM, zayatzz > > > wrote: > > > > > Im just as new and i ran into exactly the same problem. > > > > > As it seems, some people suggest to create new app for just font page > > > > (or generic public view) and create index.html as this apps front page > > > > template. > > > > > I think it is possible to create views.py and index.html for the > > > > project too. > > > > > Im sure someone will clear all this for us soon enough :). > > > > > For now i went for creating app for site. This app will hold stuff > > > > like website title, meta words, language parameters and website > > > > encoding - you'll declare them in your index html anyway, so why not > > > > store them in your database, so you can change them from admin, > > > > whenever you want. > > > > > Alan > > > > > On Apr 5, 5:57 pm, dartdog1 wrote: > > > > > Ok I'm super new, skimmed the doc & tutorial but I just can't figure > > > > > out how to go about really building the Public view side? I don't see > > > > > how to apply simple css. how to set up simple stuff like navigation > > > > > tabs and links... > > > > > > I'm implementing on GAE with the AEP and have gotten the sample app up > > > > > and going, have more docs to read there. But it seems to me that I'm > > > > > missing something basic, and when I search for stuff like css and page > > > > > layout I don't get much help.. > > > > > > For instance the sample AEP poll app has no style, I was trying to > > > > > figure out how to apply some,, but at a larger level how to do that > > > > > for a site, with navigation, and being able to take advantage of the > > > > > ability to add new apps later? > > > > > > I notice that I see a number of people raving about how much they love > > > > > Django on their WP or Blogger blogs,, Which tells me that even > > > > > designing a simple Bog is not that easy in Django. Yes I have seen a > > > > > few Django blogs, but not much discussion of how they did it, and how > > > > > they apply design. For some they seem to use a mix of other tools and > > > > > some undisclosed black magic? > > > > > > AEP has two sample blogs but truthfully they look pretty primitive. > > > > > > What am I missing? > > > > Yes, you can absolutely create a views.py that isn't in a application, > > > views > > > are just python functions, so they can live wherever they want, likewise > > > so > > > long as your index.html is in your TEMPLATE_DIRS folder then it can be > > > used > > > from wherever you like. > > > > Alex > > > > -- > > > "I disapprove of what you say, but I will defend to the death your right > > > to > > > say it." --Voltaire > > > "The people's good is the highest law."--Cicero --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@go
Re: Easy way to create pretty pages with nav?
Nothing wrong with designing your site using visual tools. Get your basic page look and feel set up as a single static HTML + CSS. That page becomes your base template. Stick a single {{ content }} placeholder in and you can start inserting dynamic content into your template from any of your views. Your navigation might become: {% for page in pages%} {{page.name}} {% endfor %} As other parts of your page become dynamic then replace them in the same way. And on the subject of blogs - assuming you start with a working Django install and the HTML+CSS already designed then I think anyone reasobably familiar with Django could get a working blog in around five minutes :) Andy On Apr 5, 9:10 pm, dartdog1 wrote: > So, is a reasonable way to do initial page design to just use some > sort of visual tool (suggestions?)(that hopefully does a good job of > separating the html and css) then go back in and hack in the Django > tags? and blocks?? Or am I just off in left field? > > On Apr 5, 10:43 am, Alex Gaynor wrote: > > > On Sun, Apr 5, 2009 at 11:38 AM, zayatzz wrote: > > > > Im just as new and i ran into exactly the same problem. > > > > As it seems, some people suggest to create new app for just font page > > > (or generic public view) and create index.html as this apps front page > > > template. > > > > I think it is possible to create views.py and index.html for the > > > project too. > > > > Im sure someone will clear all this for us soon enough :). > > > > For now i went for creating app for site. This app will hold stuff > > > like website title, meta words, language parameters and website > > > encoding - you'll declare them in your index html anyway, so why not > > > store them in your database, so you can change them from admin, > > > whenever you want. > > > > Alan > > > > On Apr 5, 5:57 pm, dartdog1 wrote: > > > > Ok I'm super new, skimmed the doc & tutorial but I just can't figure > > > > out how to go about really building the Public view side? I don't see > > > > how to apply simple css. how to set up simple stuff like navigation > > > > tabs and links... > > > > > I'm implementing on GAE with the AEP and have gotten the sample app up > > > > and going, have more docs to read there. But it seems to me that I'm > > > > missing something basic, and when I search for stuff like css and page > > > > layout I don't get much help.. > > > > > For instance the sample AEP poll app has no style, I was trying to > > > > figure out how to apply some,, but at a larger level how to do that > > > > for a site, with navigation, and being able to take advantage of the > > > > ability to add new apps later? > > > > > I notice that I see a number of people raving about how much they love > > > > Django on their WP or Blogger blogs,, Which tells me that even > > > > designing a simple Bog is not that easy in Django. Yes I have seen a > > > > few Django blogs, but not much discussion of how they did it, and how > > > > they apply design. For some they seem to use a mix of other tools and > > > > some undisclosed black magic? > > > > > AEP has two sample blogs but truthfully they look pretty primitive. > > > > > What am I missing? > > > Yes, you can absolutely create a views.py that isn't in a application, views > > are just python functions, so they can live wherever they want, likewise so > > long as your index.html is in your TEMPLATE_DIRS folder then it can be used > > from wherever you like. > > > Alex > > > -- > > "I disapprove of what you say, but I will defend to the death your right to > > say it." --Voltaire > > "The people's good is the highest law."--Cicero --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: Easy way to create pretty pages with nav?
So, is a reasonable way to do initial page design to just use some sort of visual tool (suggestions?)(that hopefully does a good job of separating the html and css) then go back in and hack in the Django tags? and blocks?? Or am I just off in left field? On Apr 5, 10:43 am, Alex Gaynor wrote: > On Sun, Apr 5, 2009 at 11:38 AM, zayatzz wrote: > > > Im just as new and i ran into exactly the same problem. > > > As it seems, some people suggest to create new app for just font page > > (or generic public view) and create index.html as this apps front page > > template. > > > I think it is possible to create views.py and index.html for the > > project too. > > > Im sure someone will clear all this for us soon enough :). > > > For now i went for creating app for site. This app will hold stuff > > like website title, meta words, language parameters and website > > encoding - you'll declare them in your index html anyway, so why not > > store them in your database, so you can change them from admin, > > whenever you want. > > > Alan > > > On Apr 5, 5:57 pm, dartdog1 wrote: > > > Ok I'm super new, skimmed the doc & tutorial but I just can't figure > > > out how to go about really building the Public view side? I don't see > > > how to apply simple css. how to set up simple stuff like navigation > > > tabs and links... > > > > I'm implementing on GAE with the AEP and have gotten the sample app up > > > and going, have more docs to read there. But it seems to me that I'm > > > missing something basic, and when I search for stuff like css and page > > > layout I don't get much help.. > > > > For instance the sample AEP poll app has no style, I was trying to > > > figure out how to apply some,, but at a larger level how to do that > > > for a site, with navigation, and being able to take advantage of the > > > ability to add new apps later? > > > > I notice that I see a number of people raving about how much they love > > > Django on their WP or Blogger blogs,, Which tells me that even > > > designing a simple Bog is not that easy in Django. Yes I have seen a > > > few Django blogs, but not much discussion of how they did it, and how > > > they apply design. For some they seem to use a mix of other tools and > > > some undisclosed black magic? > > > > AEP has two sample blogs but truthfully they look pretty primitive. > > > > What am I missing? > > Yes, you can absolutely create a views.py that isn't in a application, views > are just python functions, so they can live wherever they want, likewise so > long as your index.html is in your TEMPLATE_DIRS folder then it can be used > from wherever you like. > > Alex > > -- > "I disapprove of what you say, but I will defend to the death your right to > say it." --Voltaire > "The people's good is the highest law."--Cicero --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: Easy way to create pretty pages with nav?
On Sun, Apr 5, 2009 at 11:38 AM, zayatzz wrote: > > Im just as new and i ran into exactly the same problem. > > As it seems, some people suggest to create new app for just font page > (or generic public view) and create index.html as this apps front page > template. > > I think it is possible to create views.py and index.html for the > project too. > > Im sure someone will clear all this for us soon enough :). > > For now i went for creating app for site. This app will hold stuff > like website title, meta words, language parameters and website > encoding - you'll declare them in your index html anyway, so why not > store them in your database, so you can change them from admin, > whenever you want. > > Alan > > On Apr 5, 5:57 pm, dartdog1 wrote: > > Ok I'm super new, skimmed the doc & tutorial but I just can't figure > > out how to go about really building the Public view side? I don't see > > how to apply simple css. how to set up simple stuff like navigation > > tabs and links... > > > > I'm implementing on GAE with the AEP and have gotten the sample app up > > and going, have more docs to read there. But it seems to me that I'm > > missing something basic, and when I search for stuff like css and page > > layout I don't get much help.. > > > > For instance the sample AEP poll app has no style, I was trying to > > figure out how to apply some,, but at a larger level how to do that > > for a site, with navigation, and being able to take advantage of the > > ability to add new apps later? > > > > I notice that I see a number of people raving about how much they love > > Django on their WP or Blogger blogs,, Which tells me that even > > designing a simple Bog is not that easy in Django. Yes I have seen a > > few Django blogs, but not much discussion of how they did it, and how > > they apply design. For some they seem to use a mix of other tools and > > some undisclosed black magic? > > > > AEP has two sample blogs but truthfully they look pretty primitive. > > > > What am I missing? > > > Yes, you can absolutely create a views.py that isn't in a application, views are just python functions, so they can live wherever they want, likewise so long as your index.html is in your TEMPLATE_DIRS folder then it can be used from wherever you like. Alex -- "I disapprove of what you say, but I will defend to the death your right to say it." --Voltaire "The people's good is the highest law."--Cicero --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: Easy way to create pretty pages with nav?
Im just as new and i ran into exactly the same problem. As it seems, some people suggest to create new app for just font page (or generic public view) and create index.html as this apps front page template. I think it is possible to create views.py and index.html for the project too. Im sure someone will clear all this for us soon enough :). For now i went for creating app for site. This app will hold stuff like website title, meta words, language parameters and website encoding - you'll declare them in your index html anyway, so why not store them in your database, so you can change them from admin, whenever you want. Alan On Apr 5, 5:57 pm, dartdog1 wrote: > Ok I'm super new, skimmed the doc & tutorial but I just can't figure > out how to go about really building the Public view side? I don't see > how to apply simple css. how to set up simple stuff like navigation > tabs and links... > > I'm implementing on GAE with the AEP and have gotten the sample app up > and going, have more docs to read there. But it seems to me that I'm > missing something basic, and when I search for stuff like css and page > layout I don't get much help.. > > For instance the sample AEP poll app has no style, I was trying to > figure out how to apply some,, but at a larger level how to do that > for a site, with navigation, and being able to take advantage of the > ability to add new apps later? > > I notice that I see a number of people raving about how much they love > Django on their WP or Blogger blogs,, Which tells me that even > designing a simple Bog is not that easy in Django. Yes I have seen a > few Django blogs, but not much discussion of how they did it, and how > they apply design. For some they seem to use a mix of other tools and > some undisclosed black magic? > > AEP has two sample blogs but truthfully they look pretty primitive. > > What am I missing? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Easy way to create pretty pages with nav?
Ok I'm super new, skimmed the doc & tutorial but I just can't figure out how to go about really building the Public view side? I don't see how to apply simple css. how to set up simple stuff like navigation tabs and links... I'm implementing on GAE with the AEP and have gotten the sample app up and going, have more docs to read there. But it seems to me that I'm missing something basic, and when I search for stuff like css and page layout I don't get much help.. For instance the sample AEP poll app has no style, I was trying to figure out how to apply some,, but at a larger level how to do that for a site, with navigation, and being able to take advantage of the ability to add new apps later? I notice that I see a number of people raving about how much they love Django on their WP or Blogger blogs,, Which tells me that even designing a simple Bog is not that easy in Django. Yes I have seen a few Django blogs, but not much discussion of how they did it, and how they apply design. For some they seem to use a mix of other tools and some undisclosed black magic? AEP has two sample blogs but truthfully they look pretty primitive. What am I missing? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---