Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.
  • Root
  • » Django
  • » Newbie needs help with real-world example... [RSS Feed]

#1 Dec. 1, 2005 11:41:43

John S.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Newbie needs help with real-world example...


I've been through the tutorial pages (which are great!) and managed to get all
that working without any fuss. I'm contemplating using Django for my
company's website since I could integrate a few applications so that others
can post job openings, and do some other miscellaneous things. I decided it
would be best to start with a real world example though. :-) So I tried
getting the djangoproject.com site up and running on my machine. It runs,
but unfortunately, it complains that it can't find any pages. Not the
weblog, not the main page, nothing. I did go through and edit all the
settings to point the appropriate directories to valid locations on my
machine. Can anyone help me get up and running with the djangoproject.com
site? I'm sure I'm just missing a step or doing something stupid. I'd love
to evaluate the djangoproject.com, since it's size and simplicity wouldn't be
far off from what our site would look like. I'd really like to understand
how a real world site, using Django, is going to function on our equipment.

I should mention that at the moment I'm using django-admin.py's runserver to
run the site. I just want to make sure I get all the configuration settings
correct before I attempt to do the full up Apache 2 config.

Thanks!

-John

Offline

#2 Dec. 1, 2005 12:04:16

Kenneth G.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Newbie needs help with real-world example...


On Thursday 01 Dec 2005 5:11 pm, John Szakmeister wrote:
> I should mention that at the moment I'm using django-admin.py's
> runserver to run the site.  I just want to make sure I get all
> the configuration settings correct before I attempt to do the
> full up Apache 2 config.

i seriously doubt whether you could run the site with runserver -
try it with the full apache2 config

--
regards
kghttp://www.livejournal.com/users/lawgontally ho!http://avsap.org.inಇಂಡ್ಲಿನಕ್ಸ வாழ்க!

Offline

#3 Dec. 1, 2005 13:44:32

A.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Newbie needs help with real-world example...


On 1 Dec 2005, at 12:04, Kenneth Gonsalves wrote:i seriously doubt whether you could run the site with runserver -
try it with the full apache2 configWoah, hang on. If Django is not serving anything useful throughrunserver, putting it up on Apache isn't going to help anything.John,

What kind of error messages are you getting, if any?Did you try following the tutorials before you started trying to usethe djangoproject code?Can you post your urls.py?



________________________________
Afternoon, man about the Internet --http://aftnn.org/

Offline

#4 Dec. 2, 2005 00:05:26

Luke P.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Newbie needs help with real-world example...


On Thu, 1 Dec 2005 06:41:38 -0500 John Szakmeister wrote:

> It runs, but
> unfortunately, it complains that it can't find any pages. Not the
> weblog, not the main page, nothing.

I'm guessing the pages are stored in the database. Do you have a copy
of the djangoproject.com DB? I wouldn't have thought it was publicly
available.

Luke

--
"The number you have dialed is imaginary. Please rotate your telephone
by 90 degrees and try again."

Luke Plant || L.Plant.98 (at) cantab.net ||http://lukeplant.me.uk/

Offline

#5 Dec. 2, 2005 01:30:30

John S.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Newbie needs help with real-world example...


On Thursday 01 December 2005 19:05, Luke Plant wrote:
> On Thu, 1 Dec 2005 06:41:38 -0500 John Szakmeister wrote:
> > It runs, but
> > unfortunately, it complains that it can't find any pages. Not the
> > weblog, not the main page, nothing.
>
> I'm guessing the pages are stored in the database. Do you have a copy
> of the djangoproject.com DB? I wouldn't have thought it was publicly
> available.

I haven't gone back and checked, but I think that's part of my problem. :-)
I've got no data. I'll try putting some in.

-John

Offline

#6 Dec. 2, 2005 01:31:42

John S.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Newbie needs help with real-world example...


On Thursday 01 December 2005 07:04, Kenneth Gonsalves wrote:
> On Thursday 01 Dec 2005 5:11 pm, John Szakmeister wrote:
> > I should mention that at the moment I'm using django-admin.py's
> > runserver to run the site.  I just want to make sure I get all
> > the configuration settings correct before I attempt to do the
> > full up Apache 2 config.
>
> i seriously doubt whether you could run the site with runserver -
> try it with the full apache2 config

I don't see why not. The apps themselves aren't big, and isn't it the purpose
of runserver to help do development and testing? I think my problem is what
Luke mentioned: a lack of data.

-John

Offline

#7 Dec. 2, 2005 02:01:04

James B.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Newbie needs help with real-world example...


On 12/1/05, John Szakmeister <> wrote:
> I don't see why not. The apps themselves aren't big, and isn't it the purpose
> of runserver to help do development and testing? I think my problem is what
> Luke mentioned: a lack of data.

Yeah, I poked around in the djangoproject.com code when I was first
starting out and trying to get a feel for how it worked, and found
that some things are flat pages in the DB; you'll need to create some
"filler" flat pages to really be able to try it out.

Also, note that the templates used on the djangoproject.com site are
copyrighted.


--
"May the forces of evil become confused on the way to your house."
-- George Carlin

Offline

#8 Dec. 2, 2005 04:00:58

Kenneth G.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Newbie needs help with real-world example...


On Thursday 01 Dec 2005 7:14 pm, Afternoon wrote:
> On 1 Dec 2005, at 12:04, Kenneth Gonsalves wrote:
> > i seriously doubt whether you could run the site with runserver
> > - try it with the full apache2 config
>
> Woah, hang on. If Django is not serving anything useful through
> runserver, putting it up on Apache isn't going to help anything.

<this is a personal opinion>
I feel that runserver is only meant for people to evaluate django.
Once they see the automatic admin interface and decide to proceed
further it makes no sense to use runserver as development should
always be in the same environment as production
</personal opinion>

--
regards
kghttp://www.livejournal.com/users/lawgontally ho!http://avsap.org.inಇಂಡ್ಲಿನಕ್ಸ வாழ்க!

Offline

#9 Dec. 2, 2005 04:46:57

Joshua D.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Newbie needs help with real-world example...


<this is a personal opinion>I feel that runserver is only meant for people to evaluate django.Once they see the automatic admin interface and decide to proceedfurther it makes no sense to use runserver as development shouldalways be in the same environment as production</personal opinion>One thing that is really useful about runserver is it will give youimmediate feedback when your modelshave problems.

J

Offline

#10 Dec. 2, 2005 05:51:29

Kenneth G.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Newbie needs help with real-world example...


On Friday 02 Dec 2005 10:16 am, Joshua D. Drake wrote:
> > <this is a personal opinion>
> > I feel that runserver is only meant for people to evaluate
> > django. Once they see the automatic admin interface and decide
> > to proceed further it makes no sense to use runserver as
> > development should always be in the same environment as
> > production
> > </personal opinion>
>
> One thing that is really useful about runserver is it will give
> you immediate feedback when your models
> have problems.

as will apache/modpython
--
regards
kghttp://www.livejournal.com/users/lawgontally ho!http://avsap.org.inಇಂಡ್ಲಿನಕ್ಸ வாழ்க!

Offline

  • Root
  • » Django
  • » Newbie needs help with real-world example... [RSS Feed]

Board footer

Moderator control

Enjoy the 24th of April
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support