How could I add an HTML page to my website?

11 views
Skip to first unread message

jc

unread,
Nov 9, 2011, 4:44:42 PM11/9/11
to satchm...@googlegroups.com
Hi,

I want to simply add another page to my already up and running Satchmo website. How would I do this? Can I do this without installing any apps?

Thanks

B. Heath Robinson

unread,
Nov 9, 2011, 4:50:53 PM11/9/11
to satchm...@googlegroups.com
Add a generic view referencing your template in your urls.py file.


--
You received this message because you are subscribed to the Google Groups "Satchmo users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/satchmo-users/-/e_-AUIWWLm0J.
To post to this group, send email to satchm...@googlegroups.com.
To unsubscribe from this group, send email to satchmo-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/satchmo-users?hl=en.

Dave Brown

unread,
Nov 9, 2011, 4:51:17 PM11/9/11
to satchm...@googlegroups.com
Hi Jimmy,
Are you new to django? 

What kind of page are you wanting to add?  Just a static content page?  If so you could modify the base urls file. 
Otherwise, you'll want to probably create a custom app. 

Dave

--
You received this message because you are subscribed to the Google Groups "Satchmo users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/satchmo-users/-/e_-AUIWWLm0J.
To post to this group, send email to satchm...@googlegroups.com.
To unsubscribe from this group, send email to satchmo-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/satchmo-users?hl=en.



--
Dave Brown
CEO/Founder
Rampframe.com - Action Sports Network

Dave Brown

unread,
Nov 9, 2011, 4:52:30 PM11/9/11
to satchm...@googlegroups.com
or use generic views as Heath said :)

jc

unread,
Nov 9, 2011, 4:59:54 PM11/9/11
to satchm...@googlegroups.com
Hi all!

I want to be able to have mostly HTML content, but I have a small python script that I want to run on the page as well. that's all though.l HTML and small python script.

thanks for the reply back!
jimmy

Dave Brown

unread,
Nov 9, 2011, 5:02:47 PM11/9/11
to satchm...@googlegroups.com
So you probably want to create a custom view.  I'm assuming you want to run the 'script' to get some data that you want to display on the page?

Dave

--
You received this message because you are subscribed to the Google Groups "Satchmo users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/satchmo-users/-/zL_D_knKsXAJ.

To post to this group, send email to satchm...@googlegroups.com.
To unsubscribe from this group, send email to satchmo-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/satchmo-users?hl=en.

jc

unread,
Nov 9, 2011, 5:09:26 PM11/9/11
to satchm...@googlegroups.com
Dave,

That is correct. I want to run the script so that I can get some info on the page. Do I use the same link above (If the link https://docs.djangoproject.com/en/1.3/ref/class-based-views/ doesn't tell me how to create a custom page) to find out how to create view?

thanks,
jimmy

jc

unread,
Nov 9, 2011, 5:11:54 PM11/9/11
to satchm...@googlegroups.com
So, my guess is that I create a generic view and somehow extend it? http://www.djangobook.com/en/1.0/chapter09/ ?

Dave Brown

unread,
Nov 9, 2011, 5:19:33 PM11/9/11
to satchm...@googlegroups.com
Be very careful when reading outdated material.  You'll see at the top it says there is a newer version of the book.  Django is very good about letting you know if you are reading something oudated, but make sure you look for it in the top.  Otherwise, it could be completely different.

You may want to extend a generic view if you feel one of them match your criteria... or perhaps you will just want to create a new view from scratch.
That would be here: http://www.djangobook.com/en/1.0/chapter09/

You would write an entry in your url file referencing your new view, and your view will run your python code and save the data in the extra_context variable.

If you want some additional help, shoot me an email at wakeb...@gmail.com

Also if you find you can't do it and have to hire someone, I would be willing to write it for you. 
good luck!
Dave

On Wed, Nov 9, 2011 at 5:11 PM, jc <jimmy....@gmail.com> wrote:
So, my guess is that I create a generic view and somehow extend it? http://www.djanhttps://docs.djangoproject.com/en/dev/topics/http/views/gobook.com/en/1.0/chapter09/ ?

--
You received this message because you are subscribed to the Google Groups "Satchmo users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/satchmo-users/-/Ex4Xl9mm3pUJ.

To post to this group, send email to satchm...@googlegroups.com.
To unsubscribe from this group, send email to satchmo-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/satchmo-users?hl=en.

Dave Brown

unread,
Nov 9, 2011, 5:20:21 PM11/9/11
to satchm...@googlegroups.com
Woops gave you the wrong url.
Views are here: https://docs.djangoproject.com/en/dev/topics/http/views/

Also #django in IRC is a great source for help.
Dave

jc

unread,
Nov 9, 2011, 5:25:03 PM11/9/11
to satchm...@googlegroups.com
Dave,

I will try and do this myself. If I can't I may ask just a couple of questions about what I might be doing wrong via you address. If I can't do it then, we'll see what might be the best route for accomplishing this.

Thanks for the help, I do appreciate it a lot!
Jimmy
Reply all
Reply to author
Forward
0 new messages