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 Pyth
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 django-users+unsu
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 download
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 think
27;,'email',)
class UserProfileForm(forms.ModelForm):
class Meta:
model = UserProfile
fields = ('phonenumber',)
On Aug 20, 11:05 am, JP wrote:
> My main page contains a form. Because I want the form to appear when
> I load my page my view looks like this:
>
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()
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 to
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 wrote
sponseRedirect('/foo/')
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 wrote:
> Hi!
> I'm not sure why
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 test
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.
--~--~-~--~~~---~--~~
Y
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 succe
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,
>
Please read this:
http://code.djangoproject.com/wiki/CookBookSplitModelsToFiles
On Jul 12, 3:21 am, james_027 <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I am following the official tutorial of django, and found out that
> several model are define in a single file. I just wonder if we could
> have one m
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.djangoproj
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 lin
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
--~--~-~--~~~---~
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 = 'C:/my_project/st
.org/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 e
def process_response(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()
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
Are you running under mod_python? Is there any chance that this is an
xml library version collision between python and apache? Perhaps, if
so, you could try lxml, which provides an ElementTree-like interface
but doesn't use expat:
http://codespeak.net/lxml
22 matches
Mail list logo