On Tue, Nov 11, 2008 at 10:05 PM, Malcolm Tredinnick
<[EMAIL PROTECTED]> wrote:
> On Wed, 2008-11-12 at 00:12 -0200, Juanjo Conti wrote:
>> Is there any problem with changing my SECRET_KEY from a running project?
>
> Searching for all uses for the word SECRET_KEY in the source of Django
> would
On Mon, Nov 3, 2008 at 11:04 AM, Chen Yinliu <[EMAIL PROTECTED]> wrote:
> I've searched this group and find some related mails, but their solutions
> seem out of date, for example:
> http://gulopine.gamemusic.org/2007/nov/07/customizing-filenames-without-patching/
> but there is no
On Fri, Oct 31, 2008 at 1:42 PM, csingley <[EMAIL PROTECTED]> wrote:
> report_storage = ReportStorage(location='%s/reports' %
> settings.MEDIA_ROOT,
>base_url=settings.MEDIA_URL
> +'reports')
My guess is that you need a trailing slash here. Without it, the
On Tue, Oct 28, 2008 at 10:31 PM, varikin <[EMAIL PROTECTED]> wrote:
> try:
> object.photo._require_file()
> except ValueError:
> #handle exception
Wow, I never expected anybody to do something like that. :(
> But I just don't know what this does or is suppose to. The way I read
> it,
On Thu, Sep 18, 2008 at 11:55 AM, Faheem Mitha <[EMAIL PROTECTED]> wrote:
> Putting the following into my settings.py (checked for two different
> projects for Dango 1.0)
>
> from django.core.files.storage import Storage
>
> gives
>
> [EMAIL PROTECTED]:/var/django/hg$ python manage.py validate
>
On Mon, Sep 15, 2008 at 2:30 PM, Markus <[EMAIL PROTECTED]> wrote:
> Gul said that "... a hybrid between FileField and FilePathField. I
> really can't imagine how we'd be able to get that to work reasonably
> well, especially in a way that makes sense when trying to use it. I'm
> open to ideas,
On Thu, Aug 28, 2008 at 11:44 AM, Jiri Barton <[EMAIL PROTECTED]> wrote:
> I would like Django to take care of the file naming for me. I would
> like to use a one-liner such as
>
> Chart.objects.create(xml=default_storage.save('data.xml', data))
You're nearly there for getting this to work, it's
On Wed, Aug 27, 2008 at 12:37 AM, Brian Morton <[EMAIL PROTECTED]> wrote:
> The docs (and an analysis of the code) indicate that the second
> argument to save should be the content.
>
> http://docs.djangoproject.com/en/dev/ref/files/file/#ref-files-file
>
> I am assuming this is binary or text
On Fri, Aug 22, 2008 at 10:22 AM, Michael Sanders <[EMAIL PROTECTED]> wrote:
> Is this a consequence of http://code.djangoproject.com/changeset/8348
> or should I be doing something else to enable this validation? (I have
> PIL installed). Would it be preferable to use a Django form for the
>
On Fri, Aug 22, 2008 at 8:35 AM, julianb <[EMAIL PROTECTED]> wrote:
> What if the file never has a path and exists just as StringIO? I can't
> seem to get it to be a "Django file"...
I'm a bit confused by that. Do you mean that you don't want to save it
to a file, or that it's not a file
On Wed, Aug 20, 2008 at 3:05 PM, Tom Tobin <[EMAIL PROTECTED]> wrote:
> Renaming issues aside — am I the only one who is bothered by how many
> messages-per-day -users gets vs. noticing "interesting" topics (where
> "interesting" depends on the individual, of course)? django-users has
> become
On Tue, Aug 19, 2008 at 10:59 PM, Mike Scott <[EMAIL PROTECTED]> wrote:
> So the fact that you say we have to force nearly 15000 people to
> change is a rather void argument.
Thanks for correcting me. I haven't administered a Google Group
before, so I didn't realize they had measures in place
On Tue, Aug 19, 2008 at 12:16 PM, Tom Tobin <[EMAIL PROTECTED]> wrote:
> And this *isn't* a bikeshed argument. There is obviously substantial
> confusion over what the terms "users" and "developers" mean in the
> context of Django. We're attracting *lots* of people (3849 on
> -developers, 10431
On Tue, Aug 19, 2008 at 8:47 AM, Jon Atkinson <[EMAIL PROTECTED]> wrote:
> I'm trying to work with a model which accepts a logo image upload via
> an ImageField. My a cut down version of my model is below:
>
> class Promoter(models.Model):
>name = models.CharField(max_length=100)
>
On Fri, Jul 25, 2008 at 1:11 PM, Darthmahon <[EMAIL PROTECTED]> wrote:
> So currently there is no way of getting the dimensions for an image?
I'd call that a radical interpretation of the text. You were asking
solely about the size of the file, not the dimensions of the image.
Looking a bit at
On Fri, Jul 25, 2008 at 12:31 PM, Darthmahon <[EMAIL PROTECTED]> wrote:
> I've just upgraded my Django to the trunk and noticed some code I need
> to change. I've got a form that uploads images, looks like Django
> throws up an error if the file is not an image, which is nice but I
> also need to
On Fri, Jul 25, 2008 at 11:31 AM, Fredrik Lundh <[EMAIL PROTECTED]> wrote:
> Marty Alchin wrote:
>> Also, though, I have to ask why you're using such a complicated URL
>> pattern in the first place? For some applications, I can understand
>> accepting a full URL, bu
On Fri, Jul 25, 2008 at 8:23 AM, timc3 <[EMAIL PROTECTED]> wrote:
> Just isn't working, and it looks like a RegEx problem to me, but I am
> not sure why..
It's usually best to explain what isn't working, exactly. Is it just
not being matched, and you're getting a 404? Is your urls.py giving
you
On Tue, Jul 22, 2008 at 5:50 PM, Chris <[EMAIL PROTECTED]> wrote:
> Right now I am simply doing this which obviously does not get the
> directory structure that I want.
>
> PATH_ROOT = os.path.join(MEDIA_ROOT, 'event-photos', ph.name)
> IMAGE_PATH = os.path.join('event-photos', ph.name)
>
On Tue, Jul 22, 2008 at 5:17 AM, James PIC <[EMAIL PROTECTED]> wrote:
> I'm trying to use the value of a field of the model for Meta verbose_name.
Do you mean an instance of the model? Like, if you have an Article
whose title attribute is "Testing" you'd like "Testing" to show up in
the admin
On Mon, Jul 21, 2008 at 2:55 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> This is why i need to code a little mechanism to set the verbose_name
> property of Meta subclass of Model.
> I can't get it to work!
All of the options you're suggesting would work just fine if only Meta
ever got
On Thu, Jul 17, 2008 at 12:34 PM, Ayaz Ahmed Khan
<[EMAIL PROTECTED]> wrote:
>
> On Jul 17, 9:04 pm, rootbit <[EMAIL PROTECTED]> wrote:
>>
>> Hey everyone.
>> i would like to change the authentication system, so that usernames
>> will be email
>> like on facebook.
>>
>> how should i go about
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 =
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
On Tue, Jul 15, 2008 at 2:19 PM, joshuajonah <[EMAIL PROTECTED]> wrote:
> White forever, never loads in the browser. I have changed it today,
> but i cannot figure out what i screwed up.
>
> http://dpaste.com/hold/65163/
>
> It makes a ton of checkboxes in four columns, it then adds blank
>
On Mon, Jul 14, 2008 at 8:48 PM, Kadusale, Myles <[EMAIL PROTECTED]> wrote:
> I don't want to use cookies because they can be disabled by the user.
The alternatives I'm aware of are:
* recording the session ID directly in the URL of every page, which
just opens you up[1] to all sorts of
On Mon, Jul 14, 2008 at 11:02 AM, Rudolph <[EMAIL PROTECTED]> wrote:
> Ticket 5361 provides a way to accomplish this by writing a custom
> backend:
> http://code.djangoproject.com/ticket/5361
>
> The ticket is on the "maybe" list for 1.0!
I was afraid someone would bring up that ticket on this
On Mon, Jul 14, 2008 at 10:41 AM, lukeqsee <[EMAIL PROTECTED]> wrote:
> I know you can store images in a BLOB field in mysql, but is it
> possible with Django models?
Not out of the box, but you're free to create your own custom field[1]
to do that for you. If you look hard enough, you can
On Mon, Jul 14, 2008 at 10:12 AM, alex finn <[EMAIL PROTECTED]> wrote:
> Can anybody explain me why django's AuthenticationMiddleware is
> setting user attribute of request.__class__ and not of request itself?
> What's the point of setting it on a class level rather then on the
> instance level?
On Fri, Jul 11, 2008 at 9:08 AM, Jon Brisbin <[EMAIL PROTECTED]> wrote:
> I was a little bummed to discover that the Postgres blob support we depend
> on at work I can't use through Django in a project for myself. I'm trying to
> keep multiple versions of an original document (including the
On Thu, Jul 3, 2008 at 3:25 PM, Leaf <[EMAIL PROTECTED]> wrote:
> 3. To make sure that I could run properly, I added C:\Python25 and C:
> \Python25\Lib\site-packages\django\django\bin to my PATH variable.
Looks like you've got one too many "django" directories in here. When
Python tries to
On Tue, Jul 1, 2008 at 11:15 AM, John Lenton <[EMAIL PROTECTED]> wrote:
>> local numbers start with 281, 832, 713 , or 1281, 1832, or 1713, my
>> regex which isnt working looks like this
>
> in other words, local numbers match the regex
>
> r'^(?:281|832|713|1281|1832|1713)'
Or, to simplify it
On Wed, Jun 25, 2008 at 6:37 AM, stoKes <[EMAIL PROTECTED]> wrote:
> within django is it possible to customize upload_to in order to save
> the file into a /folder/id/category type situation?
>
> so far it just dumps everything into one directory.
As stated in the FileField documentation[1], you
On Thu, Jun 19, 2008 at 8:29 PM, James Bennett <[EMAIL PROTECTED]> wrote:
> If these functions were to change, Django itself would need to undergo
> not-insignificant refactoring. And since such a refactoring is not on
> the table, they're not going to change.
*SPOILER ALERT*
In fact, I'm
On Thu, Jun 12, 2008 at 11:41 AM, Jean-Christophe Kermagoret
<[EMAIL PROTECTED]> wrote:
>
> I need this meta model to generate automatically django code from models.
You need a model to generate models? I don't really get what you mean.
> If there is no meta model, is there presently some code
On Tue, Jun 3, 2008 at 5:15 PM, Chris Czub <[EMAIL PROTECTED]> wrote:
> # URL that handles the media served from MEDIA_ROOT.
> # Example: "http://media.lawrence.com;
> MEDIA_URL = 'http://www.mysite.com/media'
>
>
> which is correct - the url of the image SHOULD be
>
>
On Thu, May 22, 2008 at 3:22 PM, poschs <[EMAIL PROTECTED]> wrote:
> 1. I cant edit the ImageField by hand - e.g. If it currently contains
> 'images\fam1.jpg' I cannot manually type in images\fam2.jpg and have
> it accept it.
I don't follow what you're trying to do here. Does this "fam2.jpg"
On Wed, May 21, 2008 at 3:00 PM, Jeremy Bornstein <[EMAIL PROTECTED]> wrote:
> (assuming your profile model is called "UserProfile")
I think you just answered your own question. Consider a third-party
app that might be used to manage user profiles, but leaves the actual
implementation of that
On Thu, May 15, 2008 at 12:29 PM, Chris Farley <[EMAIL PROTECTED]> wrote:
> My Django app needs to read a cookie that is written by a JavaScript
> script in another part of my website. The JavaScript code that
> generates the cookie is something like this:
>
>
On Thu, May 15, 2008 at 10:25 AM, Amit Ramon <[EMAIL PROTECTED]> wrote:
> Now, if I subclass an existing field and I want to define the database type
> myself, how do I do that? Is there a place to add mapping between a name
> returned by get_internal_type and a database type, like in
On Thu, May 15, 2008 at 6:45 AM, James Bennett <[EMAIL PROTECTED]> wrote:
> On Thu, May 15, 2008 at 5:34 AM, Amit Ramon <[EMAIL PROTECTED]> wrote:
>> Was there any change in django in the recent months that could explain this?
>> Namely, could it be that a couple of months ago django would
On Tue, May 13, 2008 at 11:02 PM, Nick Retallack
<[EMAIL PROTECTED]> wrote:
> Currently it seems like it could be pretty disastrous to let users
> upload their own files, as you can see from this ticket:
> http://code.djangoproject.com/ticket/2983
I've just added a note to that ticket explaining
On Mon, May 12, 2008 at 1:28 AM, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
> This should probably be filed as a bug since the docs(http://
> www.djangoproject.com/documentation/custom_model_fields/) show an
> example of raising a TypeError.
So it does, I hadn't noticed that. I've filed a
Hi gang (especially Malcolm, if you're listening),
I was recently trying to test out a few things with field subclassing,
and I made a PickleField just to see if I could. Basically, it pickles
arbitrary Python objects for storage into the database, then unpickles
them back into Python when
On Fri, May 9, 2008 at 2:00 PM, Alex Morega <[EMAIL PROTECTED]> wrote:
> There seems to be a race condition in Django's model code for file
> uploads. Here's the relevant code snippet (django/db/models/base.py
> line 458 in the latest SVN version - #7520):
>
> while
On Thu, May 1, 2008 at 9:14 AM, Karen Tracey <[EMAIL PROTECTED]> wrote:
> Long term I believe the answer for this is in #5361
> (http://code.djangoproject.com/ticket/5361), which allows for upload_to to
> be a callable. If you're willing to run on the bleeding edge, you could try
> out the
Wow, a conversation about DurationField and I totally missed it. For
what it's worth, that patch needs a bit more work before even I want
it included in trunk. I've been putting it off because of my file
storage work, but I do plan to get back to it soon.
And Martin's right. Currently,
On Mon, Apr 21, 2008 at 5:07 PM, Justin Lilly <[EMAIL PROTECTED]> wrote:
> I believe there is also a google-code application called Coltrane-blog.
Also, http://code.google.com/p/cab/
-Gul
--~--~-~--~~~---~--~~
You received this message because you are subscribed
On Sun, Apr 20, 2008 at 10:45 AM, Hilbert Schraal
<[EMAIL PROTECTED]> wrote:
> # Make this unique, and don't share it with anybody.
> SECRET_KEY = '[EMAIL PROTECTED]@d(5w+m)kpcjffne(pvb+#6w2s_pz*5)b%$f'
As an aside, note the comment: "don't share it with anybody" It's good
that you cleaned the
Just a quick word of warning: You're now essentially passing
unfiltered user input directly into the template loader. Depending on
what content you have in your templates, this may imply a security
risk. For instance, if you have a template that hard-codes any secure
information, such as system
On Fri, Apr 18, 2008 at 12:17 PM, Brandon Taylor
<[EMAIL PROTECTED]> wrote:
> (r'?P[-\w]+/$', direct_to_template, {'template' : '%
> (template)s.html'}),
>
> ...and received an error saying:
> Error while importing URLconf 'rdk.pages.urls': nothing to repeat
You're missing parentheses around
On Tue, Apr 8, 2008 at 10:21 AM, Peter Baumgartner <[EMAIL PROTECTED]> wrote:
> Anybody interested in starting an app engine/big table db backend
> project? Should be interesting and might help pave the way for some
> other non-traditional databases like CouchDB or SimpleDB. While I'm
> not a
On Tue, Apr 8, 2008 at 4:34 AM, David Larlet <[EMAIL PROTECTED]> wrote:
> Pycon fr in Paris: http://fr.pycon.org/
> I have 2 talks (in French):
> * Why django? (for beginners)
> * Daily Django: quality and performances
If I could make it to France, and spoke French, I'd so be there.
-Gul
On Tue, Apr 8, 2008 at 8:40 AM, Mat <[EMAIL PROTECTED]> wrote:
> Why don't we start a new branch (probably off query-set) to include bigtable
> support into the ORM, shouldn't all other modules work after the model
> system is updated?
They should, although it shouldn't need a whole new
On Tue, Apr 8, 2008 at 8:16 AM, Marc Garcia <[EMAIL PROTECTED]> wrote:
> Well, it seems that you just need to migrate your django models to
> appengine models.
The trouble is who "you" are. I make use of a number of third-party
apps, and I don't much enjoy the idea of having to migrate *their*
On Tue, Apr 8, 2008 at 2:28 AM, Ramin Firoozye <[EMAIL PROTECTED]> wrote:
> Caveat: there's a waiting list for signing up.
Another caveat, according to that same page you linked:
"Since App Engine does not support Django models, leave all DATABASE_*
settings set to an empty string. The
On Wed, Apr 2, 2008 at 11:39 AM, Travis Ringger <[EMAIL PROTECTED]> wrote:
> I have installed the django-tagging dependency and have run
> syncdb a few times, but I have no tagging_tag table.
Did you just download django-tagging and put it on your PYTHONPATH, or
did you actually add it to your
Given that you say you're working with PG Navicat, I assume you're
using Postgresql as your database. Postgresql has a concept of
sequences, which it uses to generate IDs for auto-generated fields
like Django's AutoField.
I think what you've done, by copying data in directly, is created
records
On Thu, Mar 27, 2008 at 10:49 AM, Karantir <[EMAIL PROTECTED]> wrote:
>
> And here is a bit of my testcase
> [code]
>
> self.assertRaises(RevisionNotStarted,
> self.documents[0].fix_revision())
> [/code]
Try removing the extra parentheses from your test case. assertRaises
expects to get a
On Fri, Mar 21, 2008 at 2:37 PM, Greg <[EMAIL PROTECTED]> wrote:
> I would like to store model schema and URL regexes in the database and
> be able to retrieve them from the database and use them in an app.
> For example, let's say I create a simple poll model and store that
> schema in the
On Sun, Mar 9, 2008 at 5:51 PM, Nick Day <[EMAIL PROTECTED]> wrote:
> I have a model with several fields, some of which are ImageFields. To
> help prevent files overwriting others (if they are uploaded with the
> same name), and for organisational reasons, I would like to upload the
> images
On Mon, Mar 10, 2008 at 6:09 AM, Paolo Ferretti
<[EMAIL PROTECTED]> wrote:
> I've got a problem with file upload in django. I found some generic
> documentation like this:
>
> http://www.djangoproject.com/documentation/model-api/#filefield
>
On Mon, Feb 25, 2008 at 11:06 AM, Daniel Roseman
<[EMAIL PROTECTED]> wrote:
>
> On Feb 24, 12:29 am, Jonathan Lukens <[EMAIL PROTECTED]>
> wrote:
>
> > I am building a site for a customer, a restaurant owner, who wants to
> > be able to edit virtually all of the text on the site, including the
While not exactly Django-specific, I wrote up an article[1] last
month, describing an easy way to enable plugins in any Python
application. I don't know if that's what you're looking for, but it's
probably worth a look, anyway.
-Gul
[1]
On Thu, Feb 14, 2008 at 11:31 AM, Alex Koshelev <[EMAIL PROTECTED]> wrote:
>
> Look at idea behind this:
> http://code.djangoproject.com/wiki/CookBookThreadlocalsAndUser
That will likely fail to work across multiple requests, due to
threading and/or multi-process issues.
Better yet, check out
On 2/9/08, bergstyle <[EMAIL PROTECTED]> wrote:
>
> I know there's been lots of discussion about how to change uploaded
> filenames. After wading through the options I've been trying to use
> the method described here:
>
On 2/9/08, Brandon Taylor <[EMAIL PROTECTED]> wrote:
> Any way, here is my current urls.py document:
>
> from django.conf.urls.defaults import *
> from django.conf import settings
> from btaylor_design.views import home
>
> urlpatterns = patterns('',
> (r'', home),
> )
Don't bother reading
I've been considering this, but haven't gotten around to actually
doing so. Keep us posted if you have any success.
-Gul
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group,
On Jan 17, 2008 7:19 AM, sector119 <[EMAIL PROTECTED]> wrote:
> I decide to create delete_many view and I want to pass dynamic number
> of args to it using urls:
>
> /streets/street/1/delete/
> /streets/street/12/3/4/delete/
> /streets/street/7/12/43/98/192/delete/
>
> what regexp in urls.py an
On Jan 15, 2008 9:48 PM, Scott <[EMAIL PROTECTED]> wrote:
> /Working/django
Out of curiosity, what are the contents of this directory? Is this the
root of the django distribution (containing things like 'docs',
'tests' and another 'django' directory), or is this the django code
itself
In theory, I suppose you might be able to create the class that way,
but I can't imagine it would be very useful. Even if you specify
different db_column for each field to make the database happy, Django
would probably give you some fits. When you retrieve a record from the
database, Django sets
On Jan 11, 2008 10:39 AM, WoonZai <[EMAIL PROTECTED]> wrote:
> >>> model = create_model('Empty')
> Traceback (most recent call last):
> File "", line 1, in
> File "/Users/../models.py", line 36, in create_model
> return type(UserForm, (models.Model,), attrs)
> File
On Jan 9, 2008 10:28 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> I can access it, also all the images can be viewed by going to the
> url.
> It only won't appear in the actual html files.
> > > the link that i put in my index file is the following
> > > > > media="print" >
I have one
On Jan 7, 2008 9:39 AM, Placid <[EMAIL PROTECTED]> wrote:
> Hello all,
>
> I'm a huge fan of Django. Let's face it, coding a Django site is just
> plain fun. And I've only just scratched the surface of what it's
> capable of. One of the things I've missed with Django is that I
> doesn't seem to
On Jan 4, 2008 3:23 PM, Emil <[EMAIL PROTECTED]> wrote:
> Hi people,
>
> I'm working on a project where I try to utilize the dumpdata and
> loaddata commands from manage.py to extract and load data, since I'm
> constantly moving stuff I'm entering into the db between local
> development server
On 1/3/08, LRP <[EMAIL PROTECTED]> wrote:
> Ah, Django promises much, but so far has delivered nothing but Mal de
> Mar. Please tell me that there is smoother sailing beyond this patch
> of troubled waters.
First off, let me say that I absolutely love your nautical theme! I do
tend to call
On Jan 3, 2008 2:33 PM, annacoder <[EMAIL PROTECTED]> wrote:
>
> I understand *how* it is done.
>
> But, my question was not related to the how part.
Here's a quick rundown of the "why".
Templates aren't triggered by HTTP requests like views are. Instead,
they're rendered inside views, which
Given that I've thought a bit about this not too long ago[1], I'll
pipe in with my little bit of philosophy, along with some advice on
the topic at hand.
Exceptions are, by definition, exceptional. They defy the rule. That
could mean errors, but it could also mean any other situation that a
On Dec 21, 2007 10:05 AM, Gio <[EMAIL PROTECTED]> wrote:
> Hi all,
> I'm writing a custom field wishing to implement something similar to a
> multiplechoice.
> The problem is that when I run syncdb I receive a
> AttributeError: 'ListField' object has no attribute 'db_column'
> Any idea?
I didn't
I'm not sure what your end goal is here, but since you seem to be
storing settings in a database, you might consider my dbsettings
app[1], designed for exactly that purpose. I can't guarantee it does
what you need, but it's probably worth looking into.
To answer your question specifically
My guess is that you're using 0.96, or if you're using SVN, you're
using a revision before r6269. I've just updated the wiki article to
reflect this requirement.
-Gul
On 12/20/07, worker <[EMAIL PROTECTED]> wrote:
>
> Hi to everybody,
> I need help from those who have already used AuditTrail:
On Dec 19, 2007 12:41 PM, Norman Harman <[EMAIL PROTECTED]> wrote:
> Now I find my self needing to save lists and restore python lists from db.
>
> save is np.
>
> def save(self):
> # must convert to_email list into string
> self.to_email = repr(self.to_email)
>
On Dec 19, 2007 11:28 AM, Jiri Barton <[EMAIL PROTECTED]> wrote:
> My question is still the same though; is this the right way to work
> with ImageField (FileField)? I still feel this is awkward. One has to
> call methods on the model instead methods on the field to update it.
Currently, that is
I'm guessing the problem is in one of the "..." portions of your view.
In particular, I'd be interested to see how you're instantiating your
form. If you're using "Information(request.POST)", that's your
problem. Try using "Information(request.POST, request.FILES)" instead,
and see if that helps.
It looks like you've configured the built-in admin at "/admin/", and
you're defining your custom URLs *later* in the list of URL patterns.
This means that the admin's URL configuration will see
"/admin/display/12/" and assume it's supposed to route to its view for
an app named "display" and a
On Dec 18, 2007 12:08 PM, Ryan K <[EMAIL PROTECTED]> wrote:
> def save(self, user):
> if user != self.scheduled_product.teacher:
> return False
> media = Media(name=self.cleaned_data['media'].filename,
>
On Dec 17, 2007 7:05 PM, radioflyer <[EMAIL PROTECTED]> wrote:
> I have a Student model with a Foreign Key relationship to Teacher.
> When a teacher is removed, so go the students. Too dangerous for my
> particular scenario. There doesn't seem to be a Django feature that
> allows for adjusting
Ken,
There was someone else working on this recently as well, so you might
take a look at the conversation,[1] the beginnings of the code,[2] and
probably contact the author directly to see if you two can't share
ideas. It'd be a shame to duplicate effort. It'd be a great candidate
for a
http://www.djangoproject.com/documentation/model-api/#verbose-name-plural
On Dec 11, 2007 2:37 PM, Goldy <[EMAIL PROTECTED]> wrote:
>
> I have a table ending in 'ery', however in the admin it is spelt 'ys',
> if course this is wrong it should end in 'ies'.
> Is it possible to change this?
> >
>
There are several things you need to know, so I'll lay them out.
1) You can get any Field instance from a class by using the
model._meta.get_field() method. Instead of your list comprehension,
just use the following line:
picfield = p._meta.get_field('picture')
2) If you read the comments in
On 12/10/07, l5x <[EMAIL PROTECTED]> wrote:
> Any ideas?
from django.newforms.models import ModelForm
-Gul
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to
On Dec 10, 2007 7:46 AM, Julien <[EMAIL PROTECTED]> wrote:
> In the following example, the "save_avatar_file" method is never
> called. However the "_save_FIELD_file" method is called.
> It looks a bit dirty to me, and I'd like to get rid of the
> "_save_FIELD_file method", to only use a method
On Dec 5, 2007 12:25 PM, DeliciousPy <[EMAIL PROTECTED]> wrote:
> As for Marty's response...
> >However, I haven't looked at what it
> > would take to actually commit changes to the already-synced tables. I
> > have a feeling Django Evolution[2] will help with this, but I haven't
> > done any
I doubt the problem is with base.html itself, but there might still be
a mismatch of block names.
contact.html is expecting the following blocks to be defined in base.html:
* fulltitle
* header
* extrahead
* content-wrap
While thankyou.html is expecting the following blocks instead:
*
You might take a look at my writeup on dynamic models,[1] which
specifically covers a way to specify Django models in a database,
which can be changed at run-time. However, I haven't looked at what it
would take to actually commit changes to the already-synced tables. I
have a feeling Django
On 12/3/07, omat <[EMAIL PROTECTED]> wrote:
> In the actual case I have more fields in the Record model, and
> repeating those fields in the Review model is not DRY.
Ah, I see now. Using just "a" "b" and "c", I didn't realize they
actually mapped directly to the other model.
> If I create a
I'm a bit confused as to what you're actually trying to accomplish
here. Will there always only be three fields (a, b and c), or will
they actually be dynamic (and you could have many of them). If three
is just an arbitrary number, I think you're looking at creating a new
Model, containing "new"
; the django core, since everything else is bound to get obsolete sooner
> or later, and most people wouldn't bother updating this to keep it up
> with the trunk.
>
> I've gone trough the links below, and got some of it working, but the pk
> thing doesn't work on any of them.
>
>
On Nov 28, 2007 10:12 AM, Ryan K <[EMAIL PROTECTED]> wrote:
> I have a basic registration form for my site that has fields for a
> postal code, state and a country. Since our site caters to
> international users, I only want to require a state and postal code
> only if the country is the United
On 11/20/07, Vance Dubberly <[EMAIL PROTECTED]> wrote:
>
> Before it's saved to a file... that would be tricky.
>
> But this might get you started: http://www.clamav.net/ . It'll run a
> daemon though I don't know if it opens sockets or ports...
If there are Python bindings for it, the
1 - 100 of 164 matches
Mail list logo