DNS Change when moving site from PHP to Django

2006-09-20 Thread keukaman
I have a project where I am going to redesign a PHP/MySQL site into Django/Postgres. The site will be moved from a shared environment to a new, shared environment. One area that I am not sure about is how to set up the new site before changing the DNS settings to point to the new hosting facilit

Re: DNS Change when moving site from PHP to Django

2006-09-20 Thread keukaman
Thanks Ian. I continue to be impressed with this group and how helpful everyone is. Ian Holsman wrote: > put a entry in your /etc/hosts (or the windows equivalent ) > > On 21/09/2006, at 8:03 AM, keukaman wrote: > > > > > I have a project where I am going to redesi

Tutorial for including content across all pages

2006-09-25 Thread keukaman
Is there a tutorial that shows a step-by-step description of how to include content from one application in all pages on a site? I'm building a site that will have 5 headlines in a "left nav" area of the site. Those headlines will carry through all pages. Each headline will link to a story in a "

{% for object in latest %}

2006-10-01 Thread keukaman
I'm using generic views to display a list of news headlines. I use {% for object in latest %} in my template to show a listing of my headlines. I have a couple of questions for anyone who may have a few minutes to explain: 1. What entries are pulled by "latest"? I have 20 entries and the oldest

Re: {% for object in latest %}

2006-10-01 Thread keukaman
Once again, thank you. I've learned a ton from this list and I appreciate the patience everyone shows. I'm going to be launching a site soon. It's not nearly as complex as some of the other Django sites I've seen out there, but I think it's going to turn out quite nice. --~--~-~--~~

Apache Localhost Django Admin Look & Feel

2006-05-21 Thread keukaman
When I run the Django development server the admin site for my test site looks great. But when I run the site using Apache with the address http://localhost/admin all of the great look and feel provided by Django is missing. The functionality is still there, but it is stripped of all of its great

Development Admin Date

2006-05-21 Thread keukaman
SMTP id b63mr110171cwa; Sun, 21 May 2006 17:33:37 -0700 (PDT) X-Google-Token: DgSBzQwAAACrjQp-DDJllug4JXTWKG6_ Received: from 68.168.131.199 by j33g2000cwa.googlegroups.com with HTTP; Mon, 22 May 2006 00:33:36 + (UTC) From: "keukaman" <[EMAIL PROTECTED]> To: "

Re: Apache Localhost Django Admin Look & Feel

2006-05-21 Thread keukaman
: by 10.11.53.63 with SMTP id b63mr111671cwa; Sun, 21 May 2006 19:20:54 -0700 (PDT) X-Google-Token: XLh05AwAAABtYWPi2Vn3bmme3c8eu0RM Received: from 68.168.131.199 by j73g2000cwa.googlegroups.com with HTTP; Mon, 22 May 2006 02:20:54 + (UTC) From: "keukaman" <[EMAIL P

Re: Apache Localhost Django Admin Look & Feel

2006-05-22 Thread keukaman
26 by j55g2000cwa.googlegroups.com with HTTP; Mon, 22 May 2006 14:56:01 + (UTC) From: "keukaman" <[EMAIL PROTECTED]> To: "Django users" Subject: Re: Apache Localhost Django Admin Look & Feel Date: Mon, 22 May 2006 14:56:01 - Message-ID: <[EMAIL PROTECTED]> In

Re: Apache Localhost Django Admin Look & Feel

2006-05-23 Thread keukaman
Ian - I finally got it to work. Thanks for the help. --~--~-~--~~~---~--~~ 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

Re: Development Admin Date

2006-05-23 Thread keukaman
The problem only occurs when I run the Django development server. When I looked at the same pages on Apache running "live" (it's all on my local pc), the "Published Today" field works as I would expect. Adrian Holovaty wrote: > On 5/21/06, keukaman <[EMAIL PROTE

Re: Development Admin Date

2006-05-23 Thread keukaman
One more note - both servers are on the same machine. --~--~-~--~~~---~--~~ 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

Choice Listings in Admin based on a previous Choice

2006-05-26 Thread keukaman
I'm building an application that has the following structure: Category Subcategory I'm using 'choices' in the category object to display 14 categories. I'd like to base the Subcategory choices on the selection to the Category choice. Is there a simple way to do this? --~--~-~--~

"Yahoo" style directory of websites using Django

2006-05-31 Thread keukaman
I would like to build a Yahoo style directory of user suggested websites that includes categories, descriptions, etc. Does anyone know if there is an app built already that I could use? --~--~-~--~~~---~--~~ You received this message because you are subscribed to

Getting Django Magic-Removal on Webfaction

2006-06-04 Thread keukaman
I just opened a Webfaction account so that I can learn Django in a real web environment instead of running it locally on my pc. The version they install is not magic-removal. Does anyone know how to install this version on a Webfaction account? I had subversion installed. I'm not very well verse

Re: Getting Django Magic-Removal on Webfaction

2006-06-05 Thread keukaman
Thanks Remi. I have tried getting the trunk using Subversion and I seem to be having a problem. Do I need to do anything to make "svn update" work? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" grou

Upgrading to Magic-Removal

2006-06-05 Thread keukaman
First, I appreciate all of the help this group has provided me. I'm a relative newbie and I am struggling a bit with the installation of the magic-removal version. I have an shared hosting account that doesn't allow the use of Subversion to get the trunk. My default installation of Django is .91.

Re: Upgrading to Magic-Removal

2006-06-05 Thread keukaman
Thanks Adrian. I tried this approach and got a bunch of python errors when trying to access my website. I manually deleted the contents of the original django directory. Then I put the trunk django directory in it's place. is there a step I may be missing? Do I need to run an install package? --

Re: Upgrading to Magic-Removal

2006-06-05 Thread keukaman
o.core.handlers.modpython SetEnv DJANGO_SETTINGS_MODULE myproject.settings PythonPath "['/home/keukaman/webapps/django'] + sys.path" PythonDebug On Thanks for your patience. --~--~-~--~~~---~--~~ You received this message because you

Re: Upgrading to Magic-Removal

2006-06-05 Thread keukaman
Thanks Malcolm. I did as you suggested and got the error ImportError: No module named django I guess there's an installation problem. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post t

Re: Upgrading to Magic-Removal

2006-06-05 Thread keukaman
I thought I did that by FTP'ing the Django files from my local pc to my shared hosting account. Before I did that, I deleted the django directory on the shared account. I wasn't sure if just ftp'ing the files would suffice, so I wiped out the .91 version that was there. No apologies are necessary

Re: Upgrading to Magic-Removal

2006-06-06 Thread keukaman
Thanks for your help. My hosting company was able to correct the issue and install the magic-removal version. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email t

Updating DB Tables after adding Fields to a Model

2006-06-09 Thread keukaman
I have added a couple of fields to a model after the database has already been built. Can someone share the steps I should take to add these fields to the existing table? I don't care about wiping data out of the existing database. Thank you. --~--~-~--~~~---~--~~

Importing several thousand records into a database

2006-06-13 Thread keukaman
I'd like to import several thousand records, in CSV format, into an existing postgres table. Does anyone know a utility that would allow me to do this? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users"

Django Boot Camp

2006-06-28 Thread keukaman
Does anyone have any thoughts on a "boot camp" for prospective Django users where completion would result in a solid foundation for building commercial Django powered sites? I found the tutorial for the poll to be very good, but I still have a lot of questions. As a newcomer to this type of web d

Re: Django Boot Camp

2006-06-29 Thread keukaman
I would love to participate in both if possible. An online version would be most accessible as my time is limited during working hours. But there's nothing like face-to-face training. --~--~-~--~~~---~--~~ You received this message because you are subscribed to th

Users Can't Log Into Admin

2006-07-07 Thread keukaman
I created 2 users in my admin site. When I try to login with their username and password I get the following message: Please enter a correct username and password. Note that both fields are case-sensitive. Any ideas why this may occur, even though I have the correct username and password? Also,

Re: Users Can't Log Into Admin

2006-07-07 Thread keukaman
Thanks. I took a shortcut and pasted the hash from the superuser into each account. Then I went into each and used the "change password" link. This created a hash for each. It seems that it would be easier when creating a user through the admin to create a user friendly password which is then tr

Referring to media files

2006-07-08 Thread keukaman
I'm getting tantalizingly close to being able to put a simple Django site online. Any help on this ticket will get me a long way toward getting there: I have my media directories located at: /home/username/media ./img ./css

Re: Referring to media files

2006-07-10 Thread keukaman
Thanks for the help. Will this work if my site is primarly flat pages? --~--~-~--~~~---~--~~ 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 unsu

Re: Referring to media files

2006-07-11 Thread keukaman
One more thing, if you don't mind. The documentation, and your context_processors.py show in the myapp directory. Can that file be in "mysite", rather than "myapp" so I don't have to repeat it for application I make? --~--~-~--~~~---~--~~ You received this message

Django Blog Code

2006-07-12 Thread keukaman
The blog code located at http://code.djangoproject.com/svn/djangoproject.com/django_website/apps/blog/ has a directory called "/templatetags" that has a file called "latestblogentry.py" and __init__.py. If my structure is as follows: mysite/blog can anyone tell me where this templatetags direct

Re: Django Blog Code

2006-07-12 Thread keukaman
Thanks Jeremy! This group has been outstanding in getting me going with this outstanding framework. Do you know of a basic template I can use to display the blog? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Dj

Re: Django Blog Code

2006-07-13 Thread keukaman
I get an attibute error and a template error when I try to view the detail of a post: 'NoneType' object has no attribute '_default_manager' is the attribute error. {% free_comment_form for blog.entry object.id %} is highlighted as an error in the template. Can you give me some idea of where to

Sorting entries using generic views

2006-08-15 Thread keukaman
I'm using generic views to display some blog entries. It's a very simple app that i'm using to learn django. The problem I'm having is trying to sort the output with the newest entry showing at the top. Does anyone have a simple model.py and template.html I could look at that shows this? Thank yo

Re: Sorting entries using generic views

2006-08-15 Thread keukaman
Thank you! --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For

Blog URLs - defined in Template or elsewhere?

2006-08-18 Thread keukaman
I'm unclear how to generate the urls for a blog application I have. The source code for the djangoproject/weblog app shows this: {{ object.headline }} When I do the same in my template I only get the absolute url of the application, ie., http://www.websitename.com/blog/. However, it appears tha

Re: Blog URLs - defined in Template or elsewhere?

2006-08-19 Thread keukaman
Thanks again for your help Malcom. I hadn't defined the method in my model, so it was only picking up the partial path. I found what needs to be done. Malcolm Tredinnick wrote: > On Fri, 2006-08-18 at 19:59 -0700, keukaman wrote: > > I'm unclear how to generate the urls for a

Trouble accessing photos in my template

2006-08-22 Thread keukaman
I wrote a blog application that included a single image. I originally wrote my model so that the image was defined in the same class as the rest of the blog entries. I then decided that I wanted to be able to put multiple images into my blog, so I created a "Photo" class, with a var called "photo

Re: Trouble accessing photos in my template

2006-08-22 Thread keukaman
p.s. I'm using generic views keukaman wrote: > I wrote a blog application that included a single image. I originally > wrote my model so that the image was defined in the same class as the > rest of the blog entries. > > I then decided that I wanted to be able to put mul

Re: Trouble accessing photos in my template

2006-08-23 Thread keukaman
Thank you. I took your advice and changed "photoid" to "entry". I'm new to this, so can you elaborate a bit on why it's better to name that field 'entry'? SmileyChris wrote: > {% for photo in object.photo_set.all %} > > {% endfor %} > > PS: It would be better to call the field 'entry' rather tha

Recovering from a server problem

2006-08-28 Thread keukaman
My shared hosting plan had a server problem that I'm having problems recovering from. Prior to server issues, my homepage was displaying flatpage content. Following recovery from the server problem, my homepage returns the following: ImproperlyConfigured: Error importing middleware django.contri

Re: Recovering from a server problem

2006-08-29 Thread keukaman
Kenneth Gonsalves wrote: > On 29-Aug-06, at 6:58 AM, keukaman wrote: > > > Is there a way simple way to reestablish all of the relationships > > between apps, etc, after a server outage? > > is it possible that your .pyc files have got out of sync? Maybe you > could r

Are there significant differences between .95 & .96?

2006-08-30 Thread keukaman
I had a problem following a server crash that I have since recovered from. However, while trying to get everything running again, I checked out .96 using subversion. Somewhere in this process my flatpages middleware stopped working. I was getting a python error when trying to access flatpages. I

Re: Are there significant differences between .95 & .96?

2006-08-31 Thread keukaman
Adrian Holovaty wrote: > On 8/30/06, keukaman <[EMAIL PROTECTED]> wrote: > > Somewhere in this process my flatpages middleware stopped working. I > > was getting a python error when trying to access flatpages. I don't > > know if something was corru

Displaying comments in reverse date order in generic views

2006-09-02 Thread keukaman
I am showing comments on a generic view page by using {% get_free_comment_list for blog.entry object.id as comment_list %} But when I display the comments they are in the order they were entered in the database. Could someone share with me the way to display comments to that they display with t

Showing a count of only approved free comments

2006-09-03 Thread keukaman
I'm using get_free_comment_count to display the number of comments associated with each blog entry. Is there a way to display the count of only the comments that have been approved? Thanks in advance. --~--~-~--~~~---~--~~ You received this message because you are

Still unclear about image urls in a template

2006-09-06 Thread keukaman
I'm still a bit unclear about the best way to refer to images in a template. My server settings are written so that Django doesn't serve the image directly. I have a subdomain to manage my media. I refer to my logo in my site like this: http://media.mysitename.com/img/logo.gif";> It seems that

Syndication Question

2006-09-11 Thread keukaman
I hope to get a bit of clarification on syndication. Does it need its own app by running 'django-admin.py startapp feeds' or something similar? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. T

Mac vs. PC for Django work.

2006-09-13 Thread keukaman
I am in the market for a notebook computer that I will be doing my web design work on. Could I get some comments related to which is better for Django work - P.C. or Mac, as well as some pros & cons of each? Thanks. --~--~-~--~~~---~--~~ You received this message

Tutorial Files

2006-04-24 Thread keukaman
I ran through the tutorial and did well until I got to the 4th part with regard to Generic Views. Does anyone have template files, views.py, and urls.py (at the myproject level and polls level) that I could see? --~--~-~--~~~---~--~~ You received this message beca

Re: Tutorial Files

2006-04-24 Thread keukaman
Thank you. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For