Re: Multiple Image Field in a model

2011-09-27 Thread NavaTux
would put the images in a seperate model such as "ReportImage" and > make a foreign key to "Report", and finally I'd use the "inlines" admin > feature for ReportImages to display them on the same page as the report. > > Phil > > On 26/0

Multiple Image Field in a model

2011-09-26 Thread NavaTux
Hi all, I have a filed(ImageField) in my model.Also I want to have multiple ImageFields.How to have more than one ImageFields only in django model.Is there any need to derive that ImageField as a seperate new model which holds as a foreign key of another one? This is my model: class

Django 1.3 URL resolvers is not working

2011-03-23 Thread NavaTux
Here just i am authenticating a user in django and logout him authentication view is working fine and i wriiten a log out view which is here def view_logout(request): from django.contrib.auth import logout as django_logout django_logout(request) return

Re: what is mean by an integer is required?

2011-03-22 Thread NavaTux
I think the problem is in "Datetime field" format test_start_date please could you make it sure?plz On Mar 22, 9:23 pm, NavaTux <navaneetha...@gmail.com> wrote: > Here just i had written django script to calculate in my data > > MarketUpdate in my django model >

what is mean by an integer is required?

2011-03-22 Thread NavaTux
Here just i had written django script to calculate in my data MarketUpdate in my django model Here i am passing two custom fields 'ticker' and 'test_start_date'(datetime format) this script is finely working while executing in django shell It displays error after calling as a method "stock_up()"

Not Printing stmt in for loop

2011-03-17 Thread NavaTux
Here I ahd a piece of code to execute my custom python function just i executed via python shell ,so i used print statement to know some values but it does't respond anything May i know the reason please? this is the code which i executed successfully ">>> for i in cr: ... tic,

Problem with Filtering the modelField by passing req object in forms

2011-02-21 Thread NavaTux
Hi all, just i want to pass the request object to my form for doing some dynamic operation even i am using formset This is my form: class PostJobForm(forms.ModelForm): """ Post Job Form """ def __init__(self, *args, **kwargs): request = kwargs.pop('request')

Need a tutorial for 'regexpr'

2011-02-10 Thread NavaTux
Hi friends, Do you know any elegant tutorial to learn a regular expression from a nutshell ? i have referred some links which are given in a syntax without simple example, just i need a simple examples with clear explanation even i tried in past two days to pick it

Pass 'request' object to Form

2011-02-09 Thread NavaTux
Hi all, i have been using modelform in my site,Now i want to do filter the objects(only today generated) in the particular model(TAG) ,for that constraint TAGS has to be generated today only, because while retrieving all objects in a particular many_to_many(TAG) field it is quite

Re: Process 'MultipleModelChoiceField' in 'view'

2011-02-08 Thread NavaTux
Thanks Tom mjob=Job.objects.create(name=name,*city=city,tags=tag*) Here i shouldn't use to create a object for foreign key and many_to_many field; we have to get it from it's id right? because the key property violates then, city=City.objects.get(id=city_id) tag=Tag.objects.get(id=tag_id)

Process 'MultipleModelChoiceField' in 'view'

2011-02-08 Thread NavaTux
Hi Django Users, I had done the custom form with some fields which includes(charfield,foreignkey(ModelChoiceField),many_to_many field(MultiplemodelChoiceField) ),I had created a formset for my form then i need to process and pass the formset datas into my template *this is

Formset problem

2011-02-01 Thread NavaTux
Hi, I wanna to display a THREE recursive ModelForms in a single page in my django admin so i chose my code like that this is my ModelAdmin module admin.py class JobAdminForm(forms.ModelForm): class Meta: model = Job#Job is my model description =

Meaning for this error

2011-01-12 Thread NavaTux
Hi all, I wan to import a method in a model class to another class as well as that method contains some objects includes self How to import that method's operation? it shows the error >>> from users.models import userprofile Traceback (most recent call last): File "", line 1,

Re: No module named _md5

2010-12-14 Thread NavaTux
Same problem occurs; " (blogg)hire...@hirelex-laptop:~/Desktop/blogg/src$ *find -iname '*.pyc' -exec rm -f '{}' \;* (blogg)hire...@hirelex-laptop:~/Desktop/blogg/src$ cd .. (blogg)hire...@hirelex-laptop:~/Desktop/blogg$ ls bin blogsrc include lib src

No module named _md5

2010-12-14 Thread NavaTux
I am running my django blog application inside virtualenv;it got executed before sometimes;now it mess up it shows the error (blogg)hire...@hirelex-laptop:~/Desktop/blogg/blogsrc$ python manage.py runserver Traceback (most recent call last): File "manage.py", line 11, in

Started now my django

2010-12-12 Thread NavaTux
I am new to this world ..i hope to live plenty here;I would like to get the materials which lead me on flow from the newbies beginning ..can you please give me your guidance(or steps) that i should follow sequentially to remove all obstacles(learn django pretty) plz!! -- You received this