Re: flatpage error

2008-12-16 Thread prem1er
Rebooted my server and started working for no reason. Don't know what was going on. On Dec 16, 8:25 pm, Malcolm Tredinnick <malc...@pointy-stick.com> wrote: > On Tue, 2008-12-16 at 13:22 -0800, prem1er wrote: > > Just walked through this > > guidehttp://docs.djangop

flatpage error

2008-12-16 Thread prem1er
Just walked through this guide http://docs.djangoproject.com/en/dev/ref/contrib/flatpages/?from=olddocs to get a flatpage working on my site. After trying to access my admin page I am now getting an error while trying to log in. In template /home/dev/djprojects/afterthebeep/djTemplates/admin/

Re: Django + mail server

2008-12-15 Thread prem1er
Didn't know about this. Where do I set the EMAIL_HOST parameter? On Dec 15, 1:35 pm, "Karen Tracey" <kmtra...@gmail.com> wrote: > On Mon, Dec 15, 2008 at 1:01 PM, prem1er <michaelconso...@gmail.com> wrote: > > > Hey everyone, > >   I'm trying to create

Django + mail server

2008-12-15 Thread prem1er
Hey everyone, I'm trying to create a registration page on my website using Django forms. I just realized that I needed to install a mail server in order to send confirmation messages to my users through the forms. What type of setup is everyone using for this? i.e. Postfix + mutt. Thanks in

Re: 'module' object has no attribute 'ContactForm' (view does not exist)

2008-12-09 Thread prem1er
w00t. Thanks. After a bunch more import statements I finally got it working. Thanks again!!! On Dec 9, 4:22 pm, Daniel Roseman <[EMAIL PROTECTED]> wrote: > On Dec 9, 9:12 pm, prem1er <[EMAIL PROTECTED]> wrote: > > > Still no luck. I have this line added to the top

Re: 'module' object has no attribute 'ContactForm' (view does not exist)

2008-12-09 Thread prem1er
Still no luck. I have this line added to the top of views.py. from xxx.register.forms import ContactForm It can't seem to find forms 'No module named forms'. On Dec 9, 3:45 pm, Daniel Roseman <[EMAIL PROTECTED]> wrote: > On Dec 9, 8:43 pm, prem1er <[EMAIL PROTECTED]> wrote:

Re: 'module' object has no attribute 'ContactForm' (view does not exist)

2008-12-09 Thread prem1er
Thank you. That cleared that up. Now getting the error. "global name 'ContactForm' is not defined" in my 'views.py' file. Any ideas? On Dec 9, 3:35 pm, Daniel Roseman <[EMAIL PROTECTED]> wrote: > On Dec 9, 8:23 pm, prem1er <[EMAIL PROTECTED]> wrote: > > > Tr

'module' object has no attribute 'ContactForm' (view does not exist)

2008-12-09 Thread prem1er
Trying to follow along with the Form Tutorial on the Django site and I'm running into a problem. I keep getting the error page 'module' object has not attribute 'ContactForm', when I just simply copy and pasted the code from the tutorial into my models.py. Here is my source. I feel like it has

Where are you developing your python?

2008-11-21 Thread prem1er
Just wondering where everyone is developing there pythong code? Anyone using development environments, if so which one? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

Re: imagefield write error

2008-11-17 Thread prem1er
Ok, I figured that one out. I should be writing to within my Django project. How would I get this to work with apache permission? On Nov 17, 8:51 pm, prem1er <[EMAIL PROTECTED]> wrote: > Trying to write an image to my server for a user.  I keep getting the > error 'Suspici

imagefield write error

2008-11-17 Thread prem1er
Trying to write an image to my server for a user. I keep getting the error 'SuspiciousOperation, Attempted access to '.../' denied. I tried adding read write and execute permissions to this directory and still no luck. from django.db import models class user(models.Model): avatar

Re: Python and/or django book

2008-11-17 Thread prem1er
I mean, yes they are always there, but I always like a good physical reference. I have experience in OO languages, but not much server- side programming just a little ASP .Net. On Nov 17, 3:09 pm, bruno desthuilliers <[EMAIL PROTECTED]> wrote: > On 17 nov, 20:53, prem1er <[EMA

Python and/or django book

2008-11-17 Thread prem1er
Just trying to figure out what the best book to purchase for a newcomer to Django and python. Thanks for your suggestions. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

polls tutorial question

2008-11-14 Thread prem1er
Trying to mess with the styling of the polls view from the tutorial. Where is it reading it's CSS from? Or where is it 'extending' its style from. I tried to incorporate a CSS sheet from within that directory and it wouldn't read it. It would only read HTML that I placed in the document

Re: admin's media on apache

2008-11-12 Thread prem1er
Overlooked that. AMAZING thank you thank you! On Nov 12, 4:36 pm, Brian Neal <[EMAIL PROTECTED]> wrote: > On Nov 12, 3:32 pm, prem1er <[EMAIL PROTECTED]> wrote: > > > > > Still having a problem from the other day.  I can't get the media (css > > + images)

admin's media on apache

2008-11-12 Thread prem1er
Still having a problem from the other day. I can't get the media (css + images) to show up on my admin pages after I moved it over to Apache. I tried a sym link from /home/dev/Django-1.0/django/contrib/ admin/media/ to /home/dev/djprojects/xxx/media (my site root) and still no luck. I have

Re: django not reading css after switch to apache

2008-11-11 Thread prem1er
            ^ > could be that extra slash.  i assume you reloaded apache after the change? > > keith > > On Tue, Nov 11, 2008 at 2:55 PM, prem1er <[EMAIL PROTECTED]> wrote: > > > Still no good.  Is this what you wanted me to do? > > > > >    ServerNamewww.dev.

Re: django not reading css after switch to apache

2008-11-11 Thread prem1er
where the > admin media files are.  Like so: > > Alias /media /home/dev//Django-1.0/django/contrib/admin/media > > keith > > On Tue, Nov 11, 2008 at 2:15 PM, prem1er <[EMAIL PROTECTED]> wrote: > > > This is the location of my css files.  /home/dev//Django-1.0/django/ &g

Re: django not reading css after switch to apache

2008-11-11 Thread prem1er
This is the location of my css files. /home/dev//Django-1.0/django/ contrib/... On Nov 11, 1:49 pm, prem1er <[EMAIL PROTECTED]> wrote: > Just got django to work on apache thanks to everyone on this group. > After I switched, I can no longer get the CSS to work with the

django not reading css after switch to apache

2008-11-11 Thread prem1er
Just got django to work on apache thanks to everyone on this group. After I switched, I can no longer get the CSS to work with the admin page or the 'polls' from the tutorial. Here is my apache config. When I run the same site from my localhost on django's server everything is fine.

Re: apache and django

2008-11-10 Thread prem1er
Hey everyone, thanks for all your help. I'm currently able to get django running now on apache. But the style sheets aren't working so I'm guessing I have the paths wrong somewhere in my apache config. Anyone see a problem? I feel like it has to do with PythonOption django.root / When I

Re: apache and django

2008-11-10 Thread prem1er
0 Nov 2008 12:55:44 -0800 (PST), prem1er > > > > <[EMAIL PROTECTED]> wrote: > > > Ok this is where I'm at.  Here is my config file for sites-available. > > > > >     ServerNamewww.dev.xxx.us > >     ServerAlias dev.xxx.us > >     DocumentRoot

Re: apache and django

2008-11-10 Thread prem1er
dule named mysite.settings I understand that mysite.settings is supposed to be the location of my settings.py, but is it just supposed to be the path of that file? On Nov 10, 3:32 pm, prem1er <[EMAIL PROTECTED]> wrote: > Thanks for your replies everyone.  I'm looking into it more now and

Re: apache and django

2008-11-10 Thread prem1er
Thanks for your replies everyone. I'm looking into it more now and will let you know if I have any other questions. On Nov 10, 8:44 am, Brandon Martin <[EMAIL PROTECTED]> wrote: > I would just like to note here that when I first installed django with > apache and mod_python most of the problem

Re: apache and django

2008-11-09 Thread prem1er
Ok. But are the configuration lines any different or will they change. If anyone has a good tutorial written could you please post it. Also, What does this line mean ? SetEnv DJANGO_SETTINGS_MODULE mysite.settings Thanks. On Nov 9, 11:56 pm, "DULMANDAKH Sukhbaatar" <[EMAIL PROTECTED]>

Re: apache and django

2008-11-09 Thread prem1er
Thank you, but as I've mentioned I have tried to follow these instructions and have had no luck. Why is it instructing me to configure my httpd.conf file when my sub domain exists in sites- available/sites-enabled? I know that mod_python is working because I set up a test .py file that displays

apache and django

2008-11-09 Thread prem1er
Hey everyone, I'm new to django and python, but I have just completed the tutorial with everything up and running correctly. I'm trying to move django over to apache for further development at dev.mysite.com. I have have looked at the documentation on the django site and also at others from