Re: pip install Django==3.0

2019-12-02 Thread JP Smith
Django 3.0 does not support Python 3.5 . https://docs.djangoproject.com/en/3.0/releases/3.0/ ‪On Mon, Dec 2, 2019 at 11:06 AM ‫אורי‬‎ wrote:‬ > Django users, > > When I use pip to install a package, does it depend on the version of > Python I'm using? > > pip install Django==3.0 fails with

Re: pip install Django==3.0

2019-12-02 Thread JP Smith
Django 3.0 does not support Python 3.5: > > https://docs.djangoproject.com/en/3.0/releases/3.0/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: “python -m django --version” 1.11.18 Cannot update to 2.1

2019-02-10 Thread JP Smith
I know that you are new so, I don't want to overwhelm you. One thing that you might want to look into is pip, which is a package management tool for python. This will allow you to install python packages and keep them up-to-date. The if you want to take a more manual approach, you could

Hello all, try to make dropdown in form

2017-11-03 Thread JP
Hello all, any help would be appreciated, I think this is basic stuff but can find how to do it online So I made the class and the form and the view every thing works but the background color of the drop down menu in the form is black and txt is grey (white when mouse is over). I don t

Re: Validation error messages without post

2010-08-20 Thread JP
UserProfileForm(forms.ModelForm): class Meta: model = UserProfile fields = ('phonenumber',) On Aug 20, 11:05 am, JP <jcafar...@gmail.com> wrote: > My main page contains a form.  Because I want the form to appear when > I load my page my view looks like this: > > f

Validation error messages without post

2010-08-20 Thread JP
My main page contains a form. Because I want the form to appear when I load my page my view looks like this: from djangoproject1.authentication import forms from django.http import HttpResponseRedirect from django.shortcuts import render_to_response def main(request): uf = forms.UserForm()

Re: Django architecture question

2010-06-15 Thread Gerard JP
As your site gets bigger, as mine does, you can choose to split up your views over multiple .py files based on e.g. functional sections. I recently created a file named views_admin.py. Following the Django docs, I also named files based on contents. So a mydecorators.py, etc ( the my.. prefix is

Re: admin add view saves two entries on submit

2009-07-22 Thread JP
Ok, this is probably just a browser issue/quirk with IE6. I tried the admin add view via Firefox 3.5 and it works as expected.. So my guess, the combination of IE6+devserver is the problem. Hopefully it wont happen when deployed on a real server :) /Ending monologue On 22 Juli, 11:19, JP

Re: admin add view saves two entries on submit

2009-07-22 Thread JP
/') else: form = EggForm() ctx = RequestContext(request, {'form':form}) return render_to_response('foo.html', context_instance=ctx) Any pointers gladly appreciated! On 21 Juli, 19:49, JP <jeppe.peter...@gmail.com> wrote: > Hi! > I'm not sure why this happens but when I

admin add view saves two entries on submit

2009-07-21 Thread JP
Hi! I'm not sure why this happens but when I save a model (that has a foreign key) two identical entries are saved in the database (but diffs in id of course..). As there aren't really any errors I'm stumped on where to actually start looking. Any ideas? The models I made we're really simple

datetime field < year 1900

2007-10-18 Thread jp
I'm working on a brithdate/deathdate table and am having problems with this limitation. Realize this is a result of python's datetime strftime() issue but was wondering if anyone figured out a django workaround that wasn't a total hackfest. --~--~-~--~~~---~--~~

Re: Django on a shared host. The docs are scaring me ;)

2007-07-12 Thread JP
Check out this: http://www2.jeffcroft.com/blog/2006/may/11/django-dreamhost/ On Jul 11, 7:06 am, AndyB <[EMAIL PROTECTED]> wrote: > Despite having three live Django sites running from Apache and FCGI I > have always felt there was a certain degree of black magic about the > process and I've

Re: Apache Config; newbie confused

2007-07-12 Thread JP
On Jul 12, 9:34 am, "Sells, Fred" <[EMAIL PROTECTED]> wrote: > I'm a django newbie. I worked through the 4 part tutorial, and then got the > mysite demo working under Apache. I went through a lot of trial and error > to get it working under Apache, and am concerned that even though it works,

Re: RequestContext to a login form

2007-06-14 Thread JP
to use another convenient name. On Jun 14, 11:18 am, JP <[EMAIL PROTECTED]> wrote: > Hi, I trying to avoid that any user not validated enter > to my site pages, I've read several times the section: "The > login_required decorator" > in: > > http://www.djangoproject.c

RequestContext to a login form

2007-06-14 Thread JP
Hi, I trying to avoid that any user not validated enter to my site pages, I've read several times the section: "The login_required decorator" in: http://www.djangoproject.com/documentation/authentication/ and works fine, except when someone tries to access the page directly (giving the full

Re: New forms library - omit field

2007-06-09 Thread JP
This link was very useful to me, thank you!. On Jun 9, 4:06 pm, eXt <[EMAIL PROTECTED]> wrote: > Huh.. It looks that I've found an answer to my question by myself. > Here is helpful link:http://weblog.bignerdranch.com/?p=31 > > -- > Jakub Wisniowski

Re: displaying images

2007-05-06 Thread JP
Please read this tutorial, it explains what you should do to serve files statically: http://www.djangoproject.com/documentation/0.96/static_files/ On May 5, 7:20 pm, checco <[EMAIL PROTECTED]> wrote: > Hi, > > I have the following settings in settings.py: > MEDIA_ROOT =

Re: Debugging Django: print statements?

2007-01-22 Thread JP
lib/module-pdb.html JP --~--~-~--~~~---~--~~ 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

Re: Help with getting connection.queries info

2006-11-30 Thread JP
nse(self, request, response): from sys import stdout if stdout.isatty(): for query in connection.queries: print "\033[1;31m[%s]\033[0m \033[1m%s\033[0m" % (query['time'], " ".join(query['sql'].split())) return response Best Regards

Re: Problem with patch 2070

2006-09-22 Thread jp
I never could get #2070 to work, and Django's file upload mechanism is really iffy currently. What I ended up doing was this: --- I found out a solution to the problem! Today I thought about possibly subverting Django's way of parsing file uploads and using something else to do so, while still