On 16-Jul-08, at 11:09 AM, Kadusale, Myles wrote:
> 12.user_fname = models.CharField('First Name', max_length=30)
>user_lname = models.CharField('Last Name', max_length=50)
>user_email = models.EmailField('Email Address', blank=True)
>user_gndr = models.CharField(max_
Please post the code at dpaste.com, and paste the URL in the mail :-)
As Kenneth suggested, I think it looks like an indentation error, but it's
hard to detect or confirm while the mail is displayed with a non-monospaced
font.
Oscar
On Wed, Jul 16, 2008 at 7:39 AM, Kadusale, Myles <[EMAIL PROTECT
Help!
The indentions of my code in my editor are ok
I hope the code will not be distorted here again
I am trying out Django but I get this error in my console
C:\DjangoProj\UserApp>python manage.py syncdb
Error: Couldn't install apps, because there were errors in one or more
models:
UserApp.Use
Help!
The indentions of my code in my editor are ok
I hope the code will not be distorted here again
I am trying out Django but I get this error in my console
C:\DjangoProj\UserApp>python manage.py syncdb
Error: Couldn't install apps, because there were errors in one or more
models:
UserApp.Us
Hello Django-users,
Say I have a model that returns its name like this:
def __unicode__(self):
return str(self.distance_min) + "-" + str(self.distance_max)
I want to filter this model based on those two values:
Distance.objects.filter("241-250")
this obviously does not work, but is it p
Hallöchen!
Arien writes:
> On Tue, Jul 15, 2008 at 2:08 PM, Arien <[EMAIL PROTECTED]> wrote:
>
>> Oh, I see, you want the verbose_name of each field. I suppose
>> you could write a templatetag that you could use like this:
>>
>> {% verbose_name layer.heating_temperature %}
>> {{ layer.heating
On Wed, 2008-07-16 at 00:32 -0700, gnijholt wrote:
> Hello Django-users,
>
> Say I have a model that returns its name like this:
>
> def __unicode__(self):
> return str(self.distance_min) + "-" + str(self.distance_max)
>
> I want to filter this model based on those two values:
> Distance.
I just removed the underscore in max_length
And it worked fine maybe because of my Django version
Thanks anyway
-Original Message-
From: django-users@googlegroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Kadusale, Myles
Sent: Wednesday, July 16, 2008 3:27 PM
To: django-users@googleg
Hi guys
I have this configuration:
Apache 2.2.6
mod_python 3.3.1
python 2.5.1
django 0.97-pre-SVN-7543
In httpd.conf there is configuration of my dj project:
SetHandler python-program
PythonHandler django.core.handlers.modpython
SetEnv DJANGO_SETTINGS_MODULE dj_01.settings
Pyt
Hi there,
I've been reading about django file uploads on various blogs. Are
there still issues with uploading large files?
I may be creating a site for a production company and will need to
ability to upload 5-20mb video files through the cms. Is this just a
silly idea? If so, are there an
Hi,
Django's upload handling has recently been refurbished and it is now
possible upload large files without upsetting the server. Check the
doc for more info at:
http://www.djangoproject.com/documentation/upload_handling/
Cheers,
Julien
On Jul 16, 7:49 pm, Niall Mccormack <[EMAIL PROTECTED]>
On Wed, Jul 16, 2008 at 3:06 AM, Russell Keith-Magee
<[EMAIL PROTECTED]> wrote:
> I strongly suspect that the problem here is MySQL - in particular, the
> collation on your text field. There are certain default setups for
> MySQL which will result in all text fields being case insensitive.
> This
Hi,
I am getting the error "object is unindexable"
code :
company = Company.objects.get( id = companyid)
for ss in company.financials.all() :
ss[1].year
ss[1].revenue
ss.year and ss.revenue gives me the correct values for the entire list
but I am want to get only the first one.?
Hi Jeff,
I did try to move __init__ but the problem still exists.
I tried to keep title and email along with other fields so that they
will be appear in same order in Form.
class MyForm(forms.Form):
def __init__(self, cat_slug, data=None, files=None, auto_id='id_%s',
prefix=None, initi
On Wed, 2008-07-16 at 02:59 -0700, laspal wrote:
> Hi,
> I am getting the error "object is unindexable"
>
> code :
> company = Company.objects.get( id = companyid)
> for ss in company.financials.all() :
> ss[1].year
> ss[1].revenue
>
> ss.year and ss.revenue gives me the correct
I've a simple a question...
How can I update a single value of database??
I've try this:
from GAME.models import Game
Game.objects.filter(id=1)
p.name='2'
but don't update...It's add a row.
thanks in advance,
Alfredo
--~--~-~--~~~---~--~~
You received this
On Jul 15, 9:10 pm, "Matic Žgur" <[EMAIL PROTECTED]> wrote:
> is there a way to pass an argument from urls.py to inclusion tag?
>
> For example, if I have a custom inclusion tag that prints some links
> to some pages and I don't want it to print the link to the page I'm
> currently visiting, how w
solved...
from GAME.models import Game
p = Game.objects.get(id=1)
p.name = '2'
p.save()
--~--~-~--~~~---~--~~
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@goo
Hello,
I'd like to distribute an application for windows users, and I'd like
to know if it's possible to "package" django and my APP in one .exe or
in some package for distribution.
The idea is to put it all in one autoexecutable package.
Thanks for all :)
--~--~-~--~~
Hello,
I'm having trouble dealing with User module. In my application, I have
two types of users who should be able to log in.
The first one is an Employee, so I have a code like this:
class Employee(models.Model):
someFields = ...
...
user = models.ForeignKey(User)
and the other model i
Saptah,
Yes it is possible. I just did it. It is a long process and very
frustrating. I would look here:
http://www.jjude.com/index.php/archives/70
He does a good job of explaining what to do.
If you have any questions I will help you out if I know the answer.
Good luck!
Molly
On Jul 16, 7:
In __init__, where you call form.Form's __init__, you need to pass
data, *not* None. Also, you shouldn't try to duplicate all of the
arguments. This should work better:
def __init__(self, cat_slug, data=None, *args, **kwargs):
forms.Form.__init__(self, data=data, *args, **kwargs)
Also, I'm
According to:
http://code.djangoproject.com/wiki/VersionOneRoadmap#must-have-features
newforms-admin is a high priority.
If you haven't already, take a look at:
http://code.djangoproject.com/wiki/NewformsAdminBranch
http://code.djangoproject.com/wiki/NewformsHOWTO
They're both *really* helpful,
Check out:
http://dev.mysql.com/doc/refman/5.0/en/case-sensitivity.html
However, instead of dealing with it that way, you could also use this:
http://www.djangoproject.com/documentation/db-api/#iexact
-Jeff
On Jul 16, 5:54 am, "Peter Melvyn" <[EMAIL PROTECTED]> wrote:
> On Wed, Jul 16, 2008 at
I'm starting the project in two weeks, hopefully, it will be merge then.
I cross my fingers.
--~--~-~--~~~---~--~~
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@goo
hi Eric,
thanks for the response. But I was looking from the point of adding
the handler to apache. that way, if an uploaded file is larger than
allowed size, it wont even get posted to the tmp directory and you
wont end up using any bandwidth / memory with the illegal upload.
its working correc
On Wed, Jul 16, 2008 at 2:49 AM, Eric Abrahamsen <[EMAIL PROTECTED]> wrote:
> I've got an issue with multiple one-to-one relationships, which
> probably arises from poor design decisions on my part. Given a model
> like the following:
>
> class Translator(models.Model):
> user = models.OneToOn
Wouldn't it be useful to use that setting as a default for the date
filter, so you wouldn't need to specify a format every time?
I could write a patch..
On 15 Jul., 15:31, Arien <[EMAIL PROTECTED]> wrote:
> On Tue, Jul 15, 2008 at 8:14 AM, Adam Peacock <[EMAIL PROTECTED]> wrote:
>
> > I'm looking
Hi,
I would like to know how I can retrieve the user id of the user
authenticated in the auth subsystem after login in a test.
class CrearCarteraTestCase(TestCase):
fixtures = ['/fixtures/initial_data.xml']
def setUp(self):
self.client = Client()
I can't find a good answer to this in the Django docs: is there a good
way to access site-specific settings from your templates without
having to put them in context variables? I've got my media served by
Apache and everything else by Django. In my templates, I've got an
ugly hack to check
I have a form model that is generating a dynamic number of fields. It
is using a modulo conditional to see if the amount of fields if
divisible by 4 (4 column layout). If it doesn't divide, it adds
another field and then tries again.
This is not working, it is returning field lists that are 30 (/
> Saving how, exactly? If admin, newforms-admin or old admin? If old
> admin, have you tried it on newforms-admin -- bugs in old admin are
> unlikely to get any attention at this point. If saving in your own
> code, more details of that code would help.
>
This is saving through the old a
Thanks Jeff.
I also realized there is a provision to pass nested tuple like choices
to form while initalizing using field_list (Not documented but found
in django testing documents)
http://code.djangoproject.com/browser/django/trunk/tests/regressiontests/forms/forms.py
(lines 715 - 797 )
Thank
Solved
On Jul 16, 3:39 pm, Srik <[EMAIL PROTECTED]> wrote:
> Thanks Jeff.
>
> I also realized there is a provision to pass nested tuple like choices
> to form while initalizing using field_list (Not documented but found
> in django testing documents)
>
> http://code.djangoproject.com/browser/djan
Joshua,
For the simple fix, I think you should remove the word "not" from your while
condition.
The better fix is to do the math all in one step:
amountofblanks += (4 - (len(templist) + amountofblanks) % 4) % 4
-- Scott
On Wed, Jul 16, 2008 at 10:30 AM, joshuajonah <[EMAIL PROTECTED]> wrote:
I am working through some of the examples from James Bennetts
"Practical Django Projects" and I have encountered a small problem.
Note that I am not describing the whole context here, so if you have
not read the book, you may find it somewhat difficult to answer.
In the blog example, we define an
I've been doing things with PHP (and phpDocumentor) and recently
started looking into Django.
I now have the following in my 'httpd.conf' file:
LoadModule python_module "C:/Progra~1/Apache~1/Apache2.2/modules/
mod_python.so"
SetHandler python-program
PythonHandler django.core.handlers.m
Thanks Rajesh - this works perfectly!
I now have another question...
What do I now do about manytomany fields for example look at the
contributor field in the example below - I want the current
contributors to be selected in the change form (these can obviously be
more than one)
models.py:
cla
I'm not sure how to put the "better fix", would it be in the while
statement? should it be child of the statement?
I tried the "simple fix" and it isn't working either. It returned a list
of 33 items in one of the sections, that would work out to 8.25.
Obviously it is divisible, but i dont wan
I've got a radio button group with 4 options and I was wondering if
there is a way in Django to preselect one of the options.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group
I am trying to add an integer and a string:
def __unicode__(self):
return self.consequence + ': ' + self.slope_height_rr
When I run my app, I get a
On Wed, Jul 16, 2008 at 10:14 AM, Molly <[EMAIL PROTECTED]> wrote:
> I am trying to add an integer and a string:
I assume self.slope_height_rr is the float? Have you tried turning it
into a string before adding it to another string?
def __unicode__(self):
return self.consequence + ':
String substitution is a bit easier for stuff like this. Try:
def __unicode__(self):
return u"%s: %s" % (self.consequence, self.slope_height_rr)
On Wed, Jul 16, 2008 at 10:14 AM, Molly <[EMAIL PROTECTED]> wrote:
>
> I am trying to add an integer and a string:
>
> ===
Format strings are your friend:
"%s: %d" % (self.consequence, self.slope_height_rr)
Colin
On Wed, Jul 16, 2008 at 8:14 AM, Molly <[EMAIL PROTECTED]> wrote:
>
> I am trying to add an integer and a string:
>
>
> def __unicode__
Use the initial value:
http://www.djangoproject.com/documentation/newforms/#initial
On 16 Jul., 16:55, Bobby Roberts <[EMAIL PROTECTED]> wrote:
> I've got a radio button group with 4 options and I was wondering if
> there is a way in Django to preselect one of the options.
--~--~-~--~
Joshua Jonah wrote:
I'm not sure how to put the "better fix", would it be in the while
statement? should it be child of the statement?
I tried the "simple fix" and it isn't working either. It returned a list
of 33 items in one of the sections, that would work out to 8.25.
Obviously it is div
Awesome, thanks a lot guys, that solved it :)
On Jul 16, 11:24 am, "Colin Bean" <[EMAIL PROTECTED]> wrote:
> Format strings are your friend:
>
> "%s: %d" % (self.consequence, self.slope_height_rr)
>
> Colin
>
> On Wed, Jul 16, 2008 at 8:14 AM, Molly <[EMAIL PROTECTED]> wrote:
>
> > I am trying
Florencio Cano wrote:
> Hi,
> I would like to know how I can retrieve the user id of the user
> authenticated in the auth subsystem after login in a test.
>
> class CrearCarteraTestCase(TestCase):
> fixtures = ['/fixtures/initial_data.xml']
>
> def setUp(self):
> self.c
Yeah, but the point is to make the list exactly divisible, is there a
better way to do this? I'm then taking the number of fields and dividing
them by four, then outputting that number of items in each column.
> The 'simple fix', to remove 'not' from the statement works because of
> how modul
Hades_L wrote:
> Hello,
> I'm having trouble dealing with User module. In my application, I have
> two types of users who should be able to log in.
> The first one is an Employee, so I have a code like this:
> class Employee(models.Model):
>someFields = ...
>...
>user = models.ForeignK
On Wed, Jul 16, 2008 at 11:46 AM, Joshua Jonah <[EMAIL PROTECTED]> wrote:
> Yeah, but the point is to make the list exactly divisible, is there a
> better way to do this? I'm then taking the number of fields and dividing
> them by four, then outputting that number of items in each column.
I apolo
On Wed, Jul 16, 2008 at 10:51 AM, danielk <[EMAIL PROTECTED]> wrote:
>
> I've been doing things with PHP (and phpDocumentor) and recently
> started looking into Django.
>
> I now have the following in my 'httpd.conf' file:
>
> LoadModule python_module "C:/Progra~1/Apache~1/Apache2.2/modules/
> mod
Hi,
I'm a newbie and am having a an issue accessing the attribute for a
variable. I did a search (django documentation and here) and found
nothing. If this has been covered before, please direct me to the
correct thread.
I currently pass a context to my template and it works fine. For
example,
Malcolm Tredinnick wrote:
>
> On Mon, 2008-07-14 at 23:30 -0700, django-m712 wrote:
> [...]
>> Has anyone else experienced this problem?
>
> There are a few places in Django where we need to access all the models
> in an app, for example. So we use __import__(), since that's the safest
> way to
Hey guys,
I can't seem to find a good resource for the best way to handle this, so I
thought I'd ask.
What is the best way to handle an upload through an ImageField in a custom
form?
For example:
class ProfileForm(forms.Form):
first_name = forms.CharField(label='First Name', required=
People here are right: remove the "not". You want to keep adding blanks
until the total length is zero mod 4. Then, at line 19 in the dpaste,
change the loop to: for blank in range(amountofblanks). You shouldn't
be subtracting one from the value there.
--Ned.
http://nedbatchelder.com
Marty
On Wed, 2008-07-16 at 22:35 +0800, Eric Abrahamsen wrote:
> > Saving how, exactly? If admin, newforms-admin or old admin? If old
> > admin, have you tried it on newforms-admin -- bugs in old admin are
> > unlikely to get any attention at this point. If saving in your own
> > code, more d
> As documented in the backwards-incompatibility notes from the
> queryset-refactor merge, OneToOneFields in (existing) admin are not
> supported. They didn't work before the qsrf merge reliably, either, so
> no functionality was lost in the process.
Sweet, I'm switching to nf-ad. Thanks a lot.
Hi all,
I would like to force a translation language according to URI-
parameter. Something similar is done here:
http://www.jondesign.net/articles/2006/jul/02/langue-depuis-url-django-url-locale-middleware/#thecode
but it is done there on the middleware level. In my case a decision
about langua
On Wed, 2008-07-16 at 10:27 -0700, Valery wrote:
> Hi all,
>
> I would like to force a translation language according to URI-
> parameter. Something similar is done here:
> http://www.jondesign.net/articles/2006/jul/02/langue-depuis-url-django-url-locale-middleware/#thecode
>
> but it is done t
Dane:
You need to make a path where your images will go.
For example:
avatar = forms.ImageField(upload_to='media/images', required=False)
**I'm not sure what that label='Change Profile Image' is that you are
doing..
Also, your MEDIA_URL needs to be:
MEDIA_URL='/media/'
Hope that makes sense
Also, make sure you import ImageField at the top:
from django.db.models import ImageField
And, do you have the PIL downloaded??
Did you import Image?
On Jul 16, 1:42 pm, Molly <[EMAIL PROTECTED]> wrote:
> Dane:
>
> You need to make a path where your images will go.
>
> For example:
>
> avatar =
On Jul 16, 10:52 am, mbdtsmh <[EMAIL PROTECTED]> wrote:
> Thanks Rajesh - this works perfectly!
>
> I now have another question...
>
> What do I now do about manytomany fields for example look at the
> contributor field in the example below - I want the current
> contributors to be selected in t
On Jul 16, 12:03 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote:
> On Wed, Jul 16, 2008 at 10:51 AM, danielk <[EMAIL PROTECTED]> wrote:
>
> > I've been doing things with PHP (and phpDocumentor) and recently
> > started looking into Django.
>
> > I now have the following in my 'httpd.conf' file:
>
>
Dane Hesseldahl wrote:
> How do I get to the image when the avatar field has an image uploaded
> through it?
http://www.djangoproject.com/documentation/upload_handling/
--
Norman J. Harman Jr.
Senior Web Specialist, Austin American-Statesman
On Wed, Jul 16, 2008 at 11:01 AM, Marty Alchin <[EMAIL PROTECTED]> wrote:
> Of course, you're welcome to go with Scott's suggestion of doing all
> the math in one line, but it loses a bit readability going that way.
> On the flip side, it probably executes slightly faster, but probably
> not enoug
On Jul 13, 6:10 am, Darthmahon <[EMAIL PROTECTED]> wrote:
> Alex,
>
> I don't understand what you mean by that? message.users.all prints out
> a list of users based on the many to many. I just want to check if the
> current user is in message.users.all - are you saying I can't because
> I am passi
Hani wrote:
> Hi,
>
> I'm a newbie and am having a an issue accessing the attribute for a
> variable. I did a search (django documentation and here) and found
> nothing. If this has been covered before, please direct me to the
> correct thread.
>
> I currently pass a context to my template and
Hi everyone!
Next week is OSCON in Portland, Oregon. For anybody attending OSCON,
or anybody who's going to be in the greater Portland metropolitan
area, here's a lineup of Django-related events:
1. Tuesday, July 22, 7pm, Jax Bar: Django Drinkup! Come meet other
Djangonauts from OSCON and the
On Jul 16, 6:19 am, Dan <[EMAIL PROTECTED]> wrote:
> I'm starting the project in two weeks, hopefully, it will be merge then.
Don't worry about it being merged with trunk. From what I understand
changes from trunk are merged into newforms-admin branch on a weekly
basis (that is, if they are follo
On Wed, Jul 16, 2008 at 1:49 PM, danielk <[EMAIL PROTECTED]> wrote:
>
> On Jul 16, 12:03 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote:
> > On Wed, Jul 16, 2008 at 10:51 AM, danielk <[EMAIL PROTECTED]>
> wrote:
> >
> > > I've been doing things with PHP (and phpDocumentor) and recently
> > > started
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Molly wrote:
> Also, make sure you import ImageField at the top:
>
> from django.db.models import ImageField
>
> And, do you have the PIL downloaded??
> Did you import Image?
>
hello,
I have another problem with file upload.
request.FILES['file']
I am using newforms-admin to add custom validation for a Calendar
app. I am trying to handle recurring events by displaying extra
fields in the EventForm when creating a new event, but then disabling
those fields for already-existing events. I overrode ModelForm's
__init__ to achieve this by add
Hello everyone!
I have a list: data = ['apple', 'orange', 'banana']
in my template: {{ data }} will output: ['apple', orange, banana]
but {{ data[0] }} will throw an error
how can I print single entries at will in a template instead of the
whole list?
Thanks!
--~--~-~--~~---
> I have a list: data = ['apple', 'orange', 'banana']
> in my template: {{ data }} will output: ['apple', orange, banana]
> but {{ data[0] }} will throw an error
{{ data.0 }} should do the trick.
-tim
--~--~-~--~~~---~--~~
You received this message because yo
That simple huh, don't know why I didn't try that... Thanks!
On Wed, 2008-07-16 at 14:03 -0500, Tim Chase wrote:
> > I have a list: data = ['apple', 'orange', 'banana']
> > in my template: {{ data }} will output: ['apple', orange, banana]
> > but {{ data[0] }} will throw an error
>
>
> {{ data.
Sorry, i'm still new to programming in general so I'm not familiar
with that..
Wish i could help..
Good luck,
Molly
On Jul 16, 2:50 pm, d3f3nd3r <[EMAIL PROTECTED]> wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Molly wrote:
> > Also, make sure you import ImageField at the top:
>
We're running a production setup with nginx running in front of
apaches running mod_python. Nginx is decoding all ssl and reverse
proxying (the decrypted requests) to apache on the backend. We
recently upgraded mod_python and are now running into an issue because
of this django code...
def is
On Wed, Jul 16, 2008 at 2:50 PM, d3f3nd3r <[EMAIL PROTECTED]> wrote:
> hello,
> I have another problem with file upload.
> request.FILES['file'] represents a dictionary in my view, not an object.
>
> Here is my code :
>class UserPicForm(forms.Form):
>userpic = forms.FileFi
Look at line 79-84 in django/newforms.py (the default __init__). The
very first thing you should (usually) do in __init__ is init your parent
form class so that it sets up this current instance of the Form
properly. You can then add (or remove) any dynamic fields you want to in
self.fields. Yo
Hi everyone,
I'm following this tutorial for specifying a dynamic "upload_to"
attribute:
http://scottbarnham.com/blog/2007/07/31/uploading-images-to-a-dynamic-path-with-django/
But, it doesn't seem to want to work with Django admin. Does anyone
have any experience tweeking this custom class to
thanks Frantisek, Rusell and Oscar a lot for your tips!
--~--~-~--~~~---~--~~
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 thi
I tried both OpenID integration packages I could find for Django and
couldn't get either to integrate in what I felt like was a clean
manner (or even get them to work!). I've resolved to simply write my
own, stripped-down version of an Auth backend that uses OpenID
(additionally storing th
i have created a UserProfile model to extend the User. i'd like to
show the 'first_name', 'last_name',
and 'email' fields from the User model in the UserProfile admin change
view, with a link to change the User record. How can this be done
using the latest newforms-admin branch?
i can't inline
django-openid by simon willson works, but you probably have to use the
openid-2.0+auth branch. I used it in my Diamanda (http://
code.google.com/p/diamanda/) and it works ;) (diamandas.userpanel
app). I've also added authentication manager for loggin to a django
user if it has assigned openID plus
Can anyone with experience or knowledge of both Django and Kohana (PHP
framework, son of CodeIgniter) list contexts in which each would be
most appropriate? I'm in a selection process right now with both on
the short list.
Thanks!
- Henrik
--~--~-~--~~~---~--~~
Y
Right now I'd just like to know if there is anyone at all anymore that
wrote a custom/extended login_required decorator and what type of
extension and the exact need for it (motivation) was.
Thx, folks!
--~--~-~--~~~---~--~~
You received this message because you ar
Henrik Bechmann napisał(a):
> Can anyone with experience or knowledge of both Django and Kohana (PHP
> framework, son of CodeIgniter) list contexts in which each would be
> most appropriate? I'm in a selection process right now with both on
> the short list.
>
> Thanks!
>
> - Henrik
Django is P
If I have a form like the example:
The Beatles
The Who
The Zombies
And I call request.POST.getlist('bands'), is the order of the bands
going to always be the same as provided in the select box?
Or another case, if I have the form:
Select bands in the order you want them to p
On Jul 17, 5:24 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> We're running a production setup with nginx running in front of
> apaches runningmod_python. Nginx is decoding all ssl and reverse
> proxying (the decrypted requests) to apache on the backend. We
> recently upgradedmod_pythonand
Hi,
I just switched to the newforms-admin branch. After some tweaking,
things worked fine. But the real reason I switched is because I want to
use the post-save hook in the new admin application. To be more
specific, I want to perform some processing on a database entry after it
is added or c
I wanted set CharField default value to logged in admin user in model. and i
have no idea about this. :(
please, Is there any documentation or tip could be reference?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"
Hey there. I'm starting a term as web development editor at my student
newspaper in the fall, and we recently (February) launched a new site
created in Django. My background's definitely more in design than in
development per se, so I'm trying to get up to speed with Django by
putting together a b
On Wed, 2008-07-16 at 22:31 -0700, Justin Myers wrote:
> Hey there. I'm starting a term as web development editor at my student
> newspaper in the fall, and we recently (February) launched a new site
> created in Django. My background's definitely more in design than in
> development per se, so I
Ah, that makes sense. I'll give that a shot. Thanks again!
-Justin
On Jul 17, 12:49 am, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> You are making the assumption that the queryset will be recreated anew
> each time and that this will only happen after the blog_slug value has
> been determined
Worked like a charm. In case anyone's wondering:
def blog_index(request, blog_slug):
qs = Entry.objects.filter(blog__slug__exact=blog_slug)
blog_name = Blog.objects.get(slug=blog_slug).title
extra = {'blog_name': blog_name}
return archive_index(request, qs, 'date', extra_context=e
Good Day!
Can anybody help me by sending snippets of code on using ComboField in
forms?
Need it badly
Thanks
Myles
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send e
97 matches
Mail list logo