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
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
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
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
>
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()"
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,
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')
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
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
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)
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
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 =
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,
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
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
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
16 matches
Mail list logo