PIL or an error elsewhere?

2009-10-05 Thread tdelam
Hey, I keep receiving this message on the production server when I try to upload an image through the admin interface: Upload a valid image. The file you uploaded was either not an image or a corrupted image. Does anyone have a suggestion as to why? I was told it could be a PIL issue not compiled

Custom template tags

2009-09-09 Thread tdelam
Hey, I would like to know if I should write a custom template tag or if anyone can give me some direction on how to do the following: 1) User visits a page on a web site, example.org/campaign/businessname 2) I capture "businessname" and fetch the details of that user from the database and

Django-tinymce and filebrowser, error.

2009-08-16 Thread tdelam
Hey, I built a web site locally, I am using django-tinyce and the django- filebrowser, it works no problem on my local machine. As soon as I deploy it to the server I have a problem. The TinyMCE is showing up and working fine but when I click inside the image popup window to add an image, I get

Re: mod_wsgi question

2009-08-15 Thread tdelam
Hi Clifford, Thanks for replying, so If I understand this correctly, I will need to recompile mod_wsgi with that directive set to the new python binary? On Aug 15, 9:44 pm, CLIFFORD ILKAY <clifford_il...@dinamis.com> wrote: > On 15/08/09 09:13 PM, tdelam wrote: > > >

mod_wsgi question

2009-08-15 Thread tdelam
Hey, On our dedicated hosting account is an older version of Python (2.3). I could not upgrade due to plesk and such relying on that version as well. I installed Python 2.6 in a different directory /opt/python/ I have also installed django and some of the packages I require. Now, my question is

where does this slug come from?

2009-07-20 Thread tdelam
Here is the code (question to follow): {% block sidebar %} Group Mission Values {% endblock %} I am confused with this because, 1) First href renders as http://localhost:8000/group/ 2) Second href renders as http://localhost:8000/current-slug/mission/ 3) Finally, the

Re: Saving Multiple forms? or fields... confused.

2009-05-01 Thread tdelam
10:09 AM, tdelam <tde...@gmail.com> wrote: > > > Hi Karen, > > > Thanks for responding. > > > Okay so, here is the new forms code: > > > class TrueFalseForm(forms.Form): > >        def __init__(self, q, *args, **kwargs): > >    

Re: Saving Multiple forms? or fields... confused.

2009-04-30 Thread tdelam
il.com> wrote: > On Wed, Apr 29, 2009 at 4:00 PM, tdelam <tde...@gmail.com> wrote: > > > Hi, > > > I am building a small survey app, questions are added to a survey > > through django-admin, I am building the form dynamically, when the > > form is submitted I on

Saving Multiple forms? or fields... confused.

2009-04-29 Thread tdelam
Hi, I am building a small survey app, questions are added to a survey through django-admin, I am building the form dynamically, when the form is submitted I only get the first form saving, here is the code: http://dpaste.com/hold/39401/ Does anyone have any tips on how I can get the other ones

Dynamic forms?

2009-04-28 Thread tdelam
Hi Guys, This might get lengthy but I am trying to get some insight on the best way to generate some dynamic forms in a template. The project is a survey. Here is my questions model: class Question(models.Model): TRUEFALSE = 1 # a radio button yes/no question MULTIPLEANSWER = 2

Hierarchy menu system

2009-04-22 Thread tdelam
What's the best way to build a hierarchy menu system? e.g: Page items can have sub-pages and sub-pages can have sub-sub-pages and so on --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to

navigation in base.html from categories model?

2009-03-21 Thread tdelam
Hi Guys, I have a categories model, I need to generate a nav based on this model. Categories get added through the Django admin. I have a slug field that is prepopulated from the title. How can I generate this nav in base.html and still be able to pull up all the items related to that category

Re: Django forms and relationships

2009-03-17 Thread tdelam
Ah nevermind I got it worked out now. Thanks for the reply Yaniv On Mar 17, 9:39 am, tdelam <tde...@gmail.com> wrote: > Hi Yaniv, > > Thanks, I did give that a try before posting here since it just made > sense but I always received a invalid keyword argument for this > f

Re: Django forms and relationships

2009-03-17 Thread tdelam
n always inherit it and add the additional > functionality you need there. > > Hope that helps. > Yaniv > > On Mar 17, 7:12 am, tdelam <tde...@gmail.com> wrote: > > > Hi, > > > I am using the User model and trying to store additional information > > abo

Django forms and relationships

2009-03-16 Thread tdelam
Hi, I am using the User model and trying to store additional information about the person registering. I have a model called UserProfile with a few additional fields and a FK to the User model. I now have a forms.py for my forms which consists of: http://dpaste.com/hold/15470/ My question is

Model design question

2009-03-06 Thread tdelam
Hi Everyone, I recently put a new design to a web site. The web site is static basically aside from some content changes every now and then. The navigation is static, there will never be any addition to this. Each section will have a sub-section though. Also, MAYBE in the future a new

Django Flatpages nd set_language

2009-03-04 Thread tdelam
Hi everyone, I am building a bilingual cms type web site using Flatpages and django admin to obviously input the content. I am using django-multilingual. I need to be able to swap languages from one to another remembering the page the user is on, I am aware of set_language and I created a

Django bilingual web site

2009-03-02 Thread tdelam
Hey everyone. I would like to create a simple bilingual web site. Does anyone have any tips how I can accomplish this with Django? Basically a typical bilingual web site, click "french" french content is presented and vice versa for english... Any suggestions would help.