Sorry, i fixed it! it was a case of wrong PYTHONPATH.
Thanks.
On May 10, 5:21 pm, Gath wrote:
> Am using eclipse+pydev to build my django apps. I created a new
> workspace, built a new pydev project then created an empty folder in
> the new pydev project. In that empty folder i imported my old d
Hi Everybody
I installed Django and wanted to test what I can do by using Sqlite.
It is unclear for me how this can be achieved and therefore have the
following open questions:
1. Do I need to fill in the settings.py any other info than:
django.db.backends.sqlite3 at ENGINE
What do I/ Do I need
Le 11 mai 2010 à 10:30, HelloWorld a écrit :
> Hi Everybody
>
> I installed Django and wanted to test what I can do by using Sqlite.
> It is unclear for me how this can be achieved and therefore have the
> following open questions:
>
> 1. Do I need to fill in the settings.py any other info than
No, I don't talk about model inheritance. Mainly because base class
fields are propagated to subclasses. I'd like to overload some base
methods of the "models.Model" class to making them available from all
classes of a model.
But a metaclass mechanism makes overloading impossible because it
forces
Thanks a million Romain!!
It worked.
I thought about just naming it, but in the tutorial it said put the
path and I didnt want to mess up things.
Thanks again!!
Best
Z.
On May 11, 10:37 am, Romain Gaches wrote:
> Le 11 mai 2010 à 10:30, HelloWorld a écrit :
>
> > Hi Everybody
>
> > I installed
This bug is 4 years old. Weird that It was not corrected yet because
it seems to be a core functionality of the ORM. Do django developpers
have planned something before 1.2 stable release ?
Regards,
Thierry.
--
You received this message because you are subscribed to the Google Groups
"Django u
On Tue, May 11, 2010 at 5:18 PM, thierry wrote:
> This bug is 4 years old. Weird that It was not corrected yet because
> it seems to be a core functionality of the ORM. Do django developpers
> have planned something before 1.2 stable release ?
No, we don't have anything planned before 1.2 goes fi
You need to pass the current search paramters in your query string
(?party=D&q=&page= ) when you create the links to all the
pages, and you need to be able to retrieve them from request.GET in
order to recreate the object list (reps) when rendering a specific
page (any particular reason why are you
Hi everybody
I have to excuse myself for the newbie question which is following
now:
Now I am doing the Poll/Models Tutorial on this page
http://docs.djangoproject.com/en/dev/intro/tutorial01/
and I am stuck at this point:
Wait a minute. is, utterly, an unhelpful
representation of this object
Hi everyone,
I want to populate my db using syncr,
But when I run "python manage.py syncr_picasaweb", I get the following error
:
Traceback (most recent call last):
File "manage.py", line 11, in
execute_manager(settings)
File "/home/site/domains/
jcdedukdalf.nl/jcdedukdalf.nl/lib/python2
> class Choice(models.Model):
> poll = models.ForeignKey(Poll)
> choice = models.CharField(max_length=200)
> votes = models.IntegerField()
> def __unicode__(self):
> return self.question
>
>
> I know the structure is wrong.
> Any suggestions would be greatly appreciated.
Hi,
Hi Jirka
Thanks for your answer!
By structure I mean, I just followed the tutorial and am not sure if
the position and order of these tutorial code is right in my code:
class Poll(models.Model):
# ...
def __unicode__(self):
return self.question
class Choice(models.Model):
#
OK, I'm baffled. I must be missing something right in front of my
face...
I'm trying to create a form that will allow users to update their
profiles. No matter what I try, I get a
"User matching query does not exist."
...error. Below is the associated view, and the related model and
form clas
I now hacked it like this:
updated = datetime(*strptime(album.updated.text[:-5],
"%Y-%m-%dT%H:%M:%S")[:7])
not very pretty imho. But its stable, and I don't know a better way.
Grtz, Dexter
On Tue, May 11, 2010 at 12:02 PM, Dexter wrote:
> Hi everyone,
>
> I want to populate my db using syncr,
Hmm, I can't see anything wrong with your code, so I'm gonna go to the
basics - how about your code indentation? Is the "def __unicode__()"
the same way as your model field definitions?
The __unicode__() function must be part of your Poll class, not standalone.
Cheers
Jirka
On 11/05/2010,
Hi
I've got two ModelForms, both really simple.
class TaskBaseForm(forms.ModelForm):
class Meta:
model = Task
class TaskAssignmentDurationForm(forms.ModelForm):
""" Form for setting the duration of an existing TaskAssignment object. """
class Meta:
model = TaskAss
Hi,
I am a beginner in Django .
Can somebody tel me how to display an image in django...
if anyone has the right tutorial for beginners, please share with me..
--
Regards,
Rav!
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this gro
On May 11, 11:15 am, HelloWorld wrote:
> Hi Jirka
>
> Thanks for your answer!
>
> By structure I mean, I just followed the tutorial and am not sure if
> the position and order of these tutorial code is right in my code:
>
> class Poll(models.Model):
> # ...
> def __unicode__(self):
>
On May 11, 7:10 am, ravi krishna wrote:
> Hi,
> I am a beginner in Django .
> Can somebody tel me how to display an image in django...
> if anyone has the right tutorial for beginners, please share with me..
> --
> Regards,
> Rav!
>
> --
> You received this message because you are subscribed to th
I am new to django, so far I have designed a webpage that uploads a
file and accesses some python code which does a task on the file and
then outputs the results onto a results page. However, this process
can take a couple of minutes so would like to inform the user of this
using a processing or '
The POST thing was the result of late night meltdowns and desperation.
I tend to just try stupid things when i'm working through an issue
like this, just seeing what the application is capable of doing. I've
switched it all back to GET.
I found the answer around 1 this morning. You are exactly ri
Hello Django Users,
On our production server we are running the last official release
1.1.1,
When i started uploading big decimal values i ran into trouble and
came across a ticket which described the error.
This was ticket 10692 and it was solved.
Unfortunately i couldn't track down which files
Is AUTH_PROFILE_MODULE set correctly in settings.py?
On Tue, May 11, 2010 at 6:43 AM, django_jedi wrote:
> OK, I'm baffled. I must be missing something right in front of my
> face...
>
> I'm trying to create a form that will allow users to update their
> profiles. No matter what I try, I get a
This was recently discussed on this list:
http://groups.google.com/group/django-users/browse_thread/thread/7cefcb64dd423ef2/
Shawn
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.c
On Tue, May 11, 2010 at 6:15 AM, HelloWorld wrote:
> Hi Jirka
>
> Thanks for your answer!
>
> By structure I mean, I just followed the tutorial and am not sure if
> the position and order of these tutorial code is right in my code:
>
> class Poll(models.Model):
># ...
> def __unicode__(se
Hello,
i'm in the process of upgrading a project to django-1.2-rc1. While the project
specific tests passed with django-1.1.1, they all fail now with django-1.2-rc1
(see example below). Any idea what's going wrong?
ERROR: test_content_is_active (foo.bar.tests.MyTestCase)
--
Great, Just make sure you don't end up with multiple "page" arguments
on your query string when navigating through the results (click next;
click next again...).
Nuno
On Tue, May 11, 2010 at 2:41 PM, Nick wrote:
> The POST thing was the result of late night meltdowns and desperation.
> I tend to
On Tue, May 11, 2010 at 10:21 PM, Dirk Eschler wrote:
> Hello,
>
> i'm in the process of upgrading a project to django-1.2-rc1. While the project
> specific tests passed with django-1.1.1, they all fail now with django-1.2-rc1
> (see example below). Any idea what's going wrong?
At a guess -- you
The quick answer for MacPorts python:
1) Edit the file /Users//.bash_profile. Add the following line
below the line "export ENV", or to the end of the file if you don't see that
line:
"export PATH=/opt/local/bin:/opt/local/sbin:$PATH"
2) At the command prompt run "python_select -l" This will sh
On Tue, May 11, 2010 at 9:49 AM, mendes.rich...@gmail.com <
mendes...@gmail.com> wrote:
> On our production server we are running the last official release
> 1.1.1,
> When i started uploading big decimal values i ran into trouble and
> came across a ticket which described the error.
>
> This was t
Am Dienstag 11 Mai 2010, 16:38:40 schrieb Russell Keith-Magee:
> On Tue, May 11, 2010 at 10:21 PM, Dirk Eschler wrote:
> > Hello,
> >
> > i'm in the process of upgrading a project to django-1.2-rc1. While the
> > project specific tests passed with django-1.1.1, they all fail now with
> > django-1
It sounds like Django is working and your issue is with the web server
configuration.
In you case it sounds like there are two ways you could install Django, add a
virtual host to the machine, or configure apache to serve Django from a
subdirectory.
Unless you have extra hostnames available, I
ah nice one Jason :)
sorry it took me a while to respond, I had a load more problems and I
sort of forgot about this one
I didn't get your solution working, but while I was hacking away and
searching the net for ideas I found request.GET.get('q', '') in
http://stackoverflow.com/questions/15050
Hi,
I've run into a weird bug that has me scratching my head - I'm seeing
inconsistent results from a queryset between various apache processes and
the django shell. I.e. sometimes a GET gives me the right response (as it
hits a "correct" Apache instance) and other times it gives a wrong
response
It's all firing well, thanks for the heads up and the help.
On May 11, 9:26 am, Nuno Maltez wrote:
> Great, Just make sure you don't end up with multiple "page" arguments
> on your query string when navigating through the results (click next;
> click next again...).
>
> Nuno
>
>
>
> On Tue, May 1
Change your "datetime.now()"s in your manager to "datetime.now"s. The
callable version will be called every time, rather than only once at
the start of the process.
Regards
Scott
On May 11, 2:08 pm, Malcolm Box wrote:
> Hi,
>
> I've run into a weird bug that has me scratching my head - I'm seei
Does anyone know how to track if a download completed?
On May 6, 9:52 pm, CrabbyPete wrote:
> I have code that generates a file for download. I want to close the
> window after the user selects the download or even redirect them.
>
> Here is my code:
>
> response = HttpResponse(cal.as_string(), m
On May 11, 7:08 pm, Malcolm Box wrote:
> Hi,
>
> I've run into a weird bug that has me scratching my head - I'm seeing
> inconsistent results from a queryset between various apache processes and
> the django shell. I.e. sometimes a GET gives me the right response (as it
> hits a "correct" Apache
Has anyone made Django work with myconnpy?
I've checked out http://github.com/rtyler/connector-django-mysql but
the author said it's very outdated and not supported.
If you've managed to make Django work with myconnpy, please share your
experience.
Thanks.
--
You received this message because
I have a project that works OK using v1.1.1. However, if I try to run
it on trunk, I get this error:
"Error: cannot import name DateField".
Just that, no traceback, etc. I have no reference to "DateField" in my
project. There was 1 in django_extensions, but removing it and even
not loading django
Filemaker has a pattern where you can set the choices of a field to be
the indexed contents of that field.
Along with an "Other..." choice option to add a new value.
This is a very handy way of having user modified choices for a given
field.
Now I can think of several ways to do this in a form f
On Tue, May 11, 2010 at 4:11 PM, Preston Holmes wrote:
> Now I can think of several ways to do this in a form field init, but
> it seems like there should be a more reusable way to do it with a
> custom field type or mixin by overriding get_choices on the field
> object.
There is an easy way -- a
I have a project that I'm working on that works like this:
the user enters some points on a map which are then stored in a
database as a LineString object (via geodjango). Along with the
geographic data, the user is given a survey to fill out consisting of
simple questions like "how fun was this",
Hi guys, im new here but recently i came across this problem of a
little project of mine, who runs great in sqlite3 but when i try to go
into production mode (using postgresql 8.4), it just doesnt let me
syncdb, so i was wondering if anyone knew about incompatibilities and
such.
Rafael Pineda
-
Rafael,
You should probably direct your question to the satchmo-user's list to get
more responses.
I'm not aware of any Postgresql specific issues so if you can provide more
details on the satchmo list, we'll try to help.
-Chris
On Tue, May 11, 2010 at 5:35 PM, Rafael Pineda wrote:
> Hi guys,
On Tue, May 11, 2010 at 8:27 PM, Daniel Roseman wrote:
> On May 11, 7:08 pm, Malcolm Box wrote:
> > Hi,
> >
> > I've run into a weird bug that has me scratching my head - I'm seeing
> > inconsistent results from a queryset between various apache processes and
> > the django shell. I.e. sometimes
should be
AUTH_PROFILE_MODULE = 'app_name.Profile'
On May 11, 10:15 am, Bill Freeman wrote:
> Is AUTH_PROFILE_MODULE set correctly in settings.py?
>
>
>
> On Tue, May 11, 2010 at 6:43 AM, django_jedi wrote:
> > OK, I'm baffled. I must be missing something right in front of my
> > face...
>
> >
Yep. Probably should have been called AUTH_PROFILE_CLASS.
On Tue, May 11, 2010 at 7:29 PM, CrabbyPete wrote:
> should be
>
> AUTH_PROFILE_MODULE = 'app_name.Profile'
>
> On May 11, 10:15 am, Bill Freeman wrote:
>> Is AUTH_PROFILE_MODULE set correctly in settings.py?
>>
>>
>>
>> On Tue, May 11,
> I think the problem is due to the month digit... The book opted to use
> the 3-letter month name vs the two digits... I personally like the
> month as digits so I changed the urls.py and models.py to use %m.
My coworker solved this problem for me:
entry_info_dict = {
'queryset': Entry.o
Hi All,
I am a newbie in Django. I am currently working on a user registration
form.
I am trying to integrate a Jquery inline validation script in my
django code which is not a success.
What I would like to have is use something of this sort
http://www.position-absolute.com/articles/jquery-form-v
Bill,
I use that setting and I have tried different variations and the
result is the same(error is still there):
myproject.Profile
myproject.profiles
profiles.Profile
On May 11, 7:29 pm, CrabbyPete wrote:
> should be
>
> AUTH_PROFILE_MODULE = 'app_name.Profile'
>
> On May 11, 10:15 am, Bill Fr
Hi all,
While I have a number of django apps develop for Django 1.1 ... I also
want to use Django 1.2 for my new project. How can I have multiple
version of Django in my machine where my apps will be instructed
either to use 1.1 or 1.2
Thanks,
James
--
You received this message because you are
On 2010-05-11, at 7:26 PM, james_027 wrote:
> While I have a number of django apps develop for Django 1.1 ... I also
> want to use Django 1.2 for my new project. How can I have multiple
> version of Django in my machine where my apps will be instructed
> either to use 1.1 or 1.2
You should look a
I figured this out - it was a silly error caused by the ordering of my
URLconf for the profile app. URL I was using was triggering a
different view.
Thanks Bill and CrabbyPete for having a look. Appreciated!
--
You received this message because you are subscribed to the Google Groups
"Django
Thanks, Mike... I've got some studying to do! :)
On 05/10/2010 11:47 PM, Mike Dewhirst wrote:
On 11/05/2010 4:04pm, Mike Dewhirst wrote:
On 11/05/2010 3:42pm, Old Davy wrote:
On 05/10/2010 08:18 PM, Shawn Milochik wrote:
Exactly what directory is your copied template in? It's most likely
no
Hi,
Thanks for ur reply. I was asking about the ImageField. tried out the
tutorials, but its not working out. Where
all(views,models,urls.py,settings.py) should we make editings inorder to
work. Please help me
On Tue, May 11, 2010 at 6:49 PM, Jason Leveille wrote:
> On May 11, 7:10 am, ravi krish
And after virtualen take a look on virtualenvwrapper, makes virtualenv
more handy
http://pypi.python.org/pypi/virtualenvwrapper
On Wed, May 12, 2010 at 4:50 AM, Andy McKay wrote:
>
> On 2010-05-11, at 7:26 PM, james_027 wrote:
>> While I have a number of django apps develop for Django 1.1 ... I a
57 matches
Mail list logo