On 9/6/07, Adam Jenkins <[EMAIL PROTECTED]> wrote:
> This actually brings up an issue. I've heard that many Django developers
> don't
> use projects at all, that they just use apps. Is this correct? Should I
> default to one
> project and break it up into smaller ones if the need arises?
First of
On 9/7/07, Griffin Caprio <[EMAIL PROTECTED]> wrote:
> This may have been answered already, but I couldn't find it.
Which is strange, because this thread comes up if you go to the Google
Groups page and search for "djangobook status":
http://groups.google.com/group/django-users/browse_frm/thread
On 9/7/07, Drasty <[EMAIL PROTECTED]> wrote:
> Unless there's some way to override this without actually tweaking the
> source code?
http://www.djangoproject.com/documentation/db-api/#raw-saves
--
"Bureaucrat Conrad, you are technically correct -- the best kind of correct."
--~--~-~--
On 9/8/07, dbee <[EMAIL PROTECTED]> wrote:
> If I have a campaign object that has 3 groups in it. And I want to
> find all the reminder objects that are in those groups ... unless of
> course it's a campaign with no groups in it - in which case I'd like
> all the reminders associated with that cam
On 9/8/07, Chris Hoeppner <[EMAIL PROTECTED]> wrote:
> Why hasn't anyone thought of something like capistrano for django. (Yeah
> I know it can work, but there're a few features for RoR'ers).
Lots of people have thought of it. What they haven't done is written
it. Want to be the first? ;)
--
"B
On 9/9/07, Arnold Chen <[EMAIL PROTECTED]> wrote:
> I am writing an application that require "silent" post of data to a
> specific URL. I know that is a function fsockopen in PHP which can
> achieve this, and i am looking for function in Django like that.
http://docs.python.org/lib/module-socket.
On 9/10/07, Brett Parker <[EMAIL PROTECTED]> wrote:
> As it looked like he wanted to talk HTTP, maybe it'd be better to point
> to:
> http://docs.python.org/lib/module-urllib.html
> http://docs.python.org/lib/module-urllib2.html
>
> Which let you do GET and POST really quite nicely
On 9/10/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> the problem that occured while putting the same code on the server is
> a Time Zone Error.
No, it is not. Read the error message carefully: PostgreSQL is not
saying the SET TIME ZONE was problematic, it is saying "an error
occurred in one
On 9/10/07, est <[EMAIL PROTECTED]> wrote:
> Hi I am a new web developer in django. Could anyone tell me when will
> django go to 1.0?
Search the archives of this mailing list for your answer.
> Will django support py3k?
Considering that Python 3.0 isn't due to be released until late next
year,
On Jan 7, 2008 7:59 AM, shabda <[EMAIL PROTECTED]> wrote:
> This line gives me an error,
> revision_for = models.ForeignKey(Page, related_name = 'revision_for')
> as NameError: name 'Page' is not defined, obviously because page is
> defined later in the file. I can not put PageRevision later as Pa
On Jan 8, 2008 12:47 AM, Michael Hipp <[EMAIL PROTECTED]> wrote:
> How do I say "no thanks" to this helpfulness so my html can to thru?
By reading the Django template documentation, which covers this in some detail.
--
"Bureaucrat Conrad, you are technically correct -- the best kind of correct
On Jan 7, 2008 8:03 PM, Car <[EMAIL PROTECTED]> wrote:
> Is it possible to add field formerly excluded in ModelForm in view
> like in this example below:
Yes, but you're not "adding a field". You're simply getting back a
model object and then you're 100% done with the ModelForm. What you do
with
On Jan 8, 2008 10:17 AM, Nader <[EMAIL PROTECTED]> wrote:
> I have looked while for a answer to my problem but unfortunately I
> haven't found a one, maybe I had to spend more time. However I have a
> project with some applications. By using of Admin we can Create, Read,
> Update and Delete (CRUD
On Jan 8, 2008 11:16 AM, l5x <[EMAIL PROTECTED]> wrote:
> This should help you:
> http://code.djangoproject.com/wiki/CookBookThreadlocalsAndUser
No.
That's a nasty, ugly, horrible hack that's about fifty times more
complicated than what's actually needed to do this. He got it right
the first tim
On Jan 8, 2008 12:14 PM, Jeff Anderson <[EMAIL PROTECTED]> wrote:
> Another dirty solution would be to simply create a user account, and
> give it permissions to only view things. I haven't played with
> permissions at all, but I imagine it would be possible.
> The correct way is still to write yo
Python module names cannot include hyphens, so
'django-pyodbc.db.mssql' is not a valid Python module name regardless
of whether you have the code on your system. Try renaming the module
to not include a hyphen.
Also, make sure you're using a recent SVN checkout of Django; the
ability to use exter
On Jan 8, 2008 6:27 PM, Jeff Anderson <[EMAIL PROTECTED]> wrote:
> The only way I know to accomplish this is to modify the admin template,
> and display a link based on the name of the model, as determined by the
> template logic.
> Is this the best way to do this? or is there a cleaner way?
Thin
On Jan 10, 2008 2:51 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> File "/home/grmadmin/webapps/django/classic/registration/views.py",
> line 35, in activate
>account.backend = 'django.contrib.auth.backends.ModelBackend'
There is not and never has been any such line of code in django-re
On Jan 10, 2008 9:14 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Unless I've gone utterly mad, it IS django-registration. I remember
> installing django-registration, and most all of the code looks just
> like django-registration, albeit an older version. Not that any of
> that explains the
On Jan 11, 2008 11:02 AM, shabda <[EMAIL PROTECTED]> wrote:
> How are the values calculated. If Django asks the DB to provide it
> those values, can we be sure, for all supported backends, that
> 1. The ids are auto incrementing, (and not just unique).
> 2. They start from zero.
> 3. The differen
On Jan 11, 2008 9:03 PM, kbochert <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] public_html]# ./tmp3
> -bash: ./tmp3: /usr/local/bin/python2.5^M: bad interpreter: No such
> file or directory
Try running 'dos2unix' on that file to convert the line endings to the
proper Unix style.
--
"Bureaucr
On Jan 11, 2008 8:51 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> How do I get access to that backend?
The Django auth documentation covers this; look at the note on the
documentation for the 'login()' function (in the section on how to log
a user in manually).
--
"Bureaucrat Conrad, you
2008/1/13 Alex Koshelev <[EMAIL PROTECTED]>:
> When you explicitly write list in choices it evaluates at module
> import type. To avoid this write function and pass it as 'choices'
> parameter
Or...
deck = forms.ModelChoiceField(queryset=Deck.objects.all())
--
"Bureaucrat Conrad, you are tec
On Jan 14, 2008 12:01 PM, Vance Dubberly <[EMAIL PROTECTED]> wrote:
> Kind of a bummer, guess I'll be using cherrypy for this project. Was
> hoping to use django but it looks like there is no way to hook into
> the request response loop before the request is parsed. :(
If streaming uploads are vi
On Jan 15, 2008 1:08 AM, laspal <[EMAIL PROTECTED]> wrote:
This:
> (r'^static/(?P.*)$', 'django.views.static.serve',
> {'document_root': '/home/laspal/trytemplate/Template/',
> 'show_indexes' : True}),
Does not match the URL in this:
> type="text/css" href="testing1.css" />
So change one
On Jan 15, 2008 10:07 AM, Sadjad Fouladi <[EMAIL PROTECTED]> wrote:
> I have a question. I'm going to use Django for my new website. Can I
> use django in a shared hosting environment or I need to buy a
> Dedicated server? Does Django need a lot of RAM, like Rails? Please
> note that, this site mi
On Jan 15, 2008 9:12 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> I know I should have sent it using a ticket, but I'm being rejected
> for some reason as a spammer. Hope this one will go throgh.
Quoting from the "New ticket" page:
"If you're getting rejected by the spam filter, we apologi
On Jan 15, 2008 9:34 PM, oak <[EMAIL PROTECTED]> wrote:
> In Django admin I can add a track without specifying a file without a
> problem however if I go into album and try to add a track that way. It
> has an error saying that the file can not be null.
It looks like you initially created the tab
It's worth noting that I expanded that a bit and put it into my
"template_utils" app:
http://code.google.com/p/django-template-utils/
Sent from my iPod
On Jan 15, 2008, at 7:46 PM, Kenneth Gonsalves
<[EMAIL PROTECTED]> wrote:
>
>
> On 16-Jan-08, at 3:26 AM, Petar wrote:
>
>> The thing is,
Ladies and gents, you'll do everyone a favor if you don't rise to the bait here.
--
"Bureaucrat Conrad, you are technically correct -- the best kind of correct."
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Dj
Again, folks: please don't rise to the bait ;)
--
"Bureaucrat Conrad, you are technically correct -- the best kind of correct."
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this
On Jan 17, 2008 5:00 AM, Grindizer <[EMAIL PROTECTED]> wrote:
> - If you want to retrieve the current logged user at model level, this
> is a little more complicated, because models are note designed to see
> what happen at process level, but it still possible, look at this:
Any code which requir
On Jan 17, 2008 5:36 AM, Grindizer <[EMAIL PROTECTED]> wrote:
> For example, i found this very handy, when we have to support a
> multilingual db: getting the current language like this and use it to
> select the right values in db can save us a lot of work, and result in
> a more clear views code
On Jan 17, 2008 6:30 AM, maoxl <[EMAIL PROTECTED]> wrote:
> writing a html form is just NOT so complicated, and I really don't
> think it deserve a py package as luxury as the
> django.contrib.newfroms . why not just write html forms by hand .
> I'm a new comer to django, hoping somebody tell me
Do you have "DEBUG = True" in your Django settings file?
--
"Bureaucrat Conrad, you are technically correct -- the best kind of correct."
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To po
On Jan 19, 2008 3:51 AM, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote:
> I have a limit_choices_to in my model - but this does work on my
> ModelForm. How do I do this?
Either set up the ModelChoiceField manually and specify the QuerySet,
or hang on while I get around to adding tests to the patch
On Jan 19, 2008 5:05 PM, Jim Crossley <[EMAIL PROTECTED]> wrote:
> What's the common way of making unit tests use a different database
> than what's in settings.DATABASE_{ENGINE,USER,PASSWORD,HOST,PORT}?
http://www.djangoproject.com/documentation/settings/#test-database-name
--
"Bureaucrat Con
On Jan 19, 2008 10:24 PM, Jim Crossley <[EMAIL PROTECTED]> wrote:
> Yes, I knew I could override the NAME, but I'd like to override the
> ENGINE,USER,PASSWORD,HOST, and PORT, too. Our settings are configured
> for mysql/innodb, to match our production environment. But as our
> test suite and ini
On Jan 21, 2008 8:43 AM, Carl Karsten <[EMAIL PROTECTED]> wrote:
> Exception Type: ViewDoesNotExist at /admin/
> Exception Value: Tried new_message in module ridgemoor.core.views. Error was:
> 'module' object has no attribute 'new_message'
Most likely is that something that's different between yo
On Jan 21, 2008 10:22 AM, Bram - Smartelectronix
<[EMAIL PROTECTED]> wrote:
> 1. huge numbers of users make the admin almost unusable. Almost any
> objects is related to a user (or two). Having to load 500K users in a
> form makes for ultra big and slow web pages. Is there a fix for this
> somewhe
On Jan 22, 2008 8:16 AM, code_berzerker <[EMAIL PROTECTED]> wrote:
> this gives 5 Poll objects. I wonder if this is efficient way of
> getting them? Does django get all rows first and then sort it and then
> slice it to get only 5? Or is it optimized somehow. The question is if
> its simplified fo
On Jan 21, 2008 8:30 PM, Papalagi Pakeha <[EMAIL PROTECTED]> wrote:
> i wonder if there is any way to have Macros in django templates
> similar to what Jinja has (http://jinja.pocoo.org/)?
No.
The Jinja project was started specifically to add additional
programming constructs that the Django tem
On Jan 22, 2008 4:15 PM, Papalagi Pakeha <[EMAIL PROTECTED]> wrote:
> what's the reasoning behind not having and not planning to have macros
> in django templates? they look like a very useful construct compliant
> with DRY to me.
Django's template system is meant to be a means of expressing
pres
On Jan 23, 2008 9:17 AM, Claudio Escudero <[EMAIL PROTECTED]> wrote:
> How I see the SQL generated in the system in development?
> Its appears on the console?
http://www.djangoproject.com/documentation/faq/#how-can-i-see-the-raw-sql-queries-django-is-running
--
"Bureaucrat Conrad, you are tech
On Jan 23, 2008 4:38 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> In other words, how do I invoke a query and supply what is essentially
> a column list in a SQL SELECT statement?
By following the instructions in the nice documentation that's
provided with Django:
http://www.djangoproject.
more
"core" fields using core=True. If the core fields are filled in, the
related model is added. If the core fields are empty, the related
model is removed."
As core=True has been removed form newforms-admin how can I replicate
this behavi
ver, each time I save the parent object 3 blank related objects
are being created (as I have extra=3 set).
Is there a way around this problem?
James
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django use
On Jan 26, 2008 7:35 PM, almostvindiesel <[EMAIL PROTECTED]> wrote:
> I figured {{ form['recipe_name'] }} or
> {{ unicode(form['recipe_name']) }} should work per the documentation
> here: http://www.djangoproject.com/documentation/newforms/, but doing
> so returns the following error within the te
On Jan 26, 2008 11:36 PM, msoulier <[EMAIL PROTECTED]> wrote:
> instance = models.ForeignKey(TugInstance)
>
> When my form is submitted, I am assigning
>
> client.instance = form.clean_data['instance_id']
You can assign a numeric ID of a TugInstance object to 'instance_id'
on a Client object.
Yo
On Jan 27, 2008 10:54 AM, Claudio Escudero <[EMAIL PROTECTED]> wrote:
> Anyone know if there is something like created_at or updated_at of Ruby on
> Rails.
> These fields are filled automatically when saving and editing?
For any DateField or DateTimeField, you can tell Django to
automatically up
A better solution:
1. Completely forget that you ever learned from any source that it
might be a good idea to have a project folder with the apps inside it;
the tutorial does that because it's simpler and easier for purposes of
introducing Django, but in real-world situations it's generally a
ter
On Jan 27, 2008 10:35 PM, Hugh Bien <[EMAIL PROTECTED]> wrote:
> I've been googling around for a while, but I haven't found a way to create
> indexes with multiple columns, ie.
Several options:
1. Instead of 'syncdb', use the 'sqlall' option of manage.py and pipe
the SQL into a file, then edit i
On Jan 28, 2008 6:49 AM, Artiom Diomin <[EMAIL PROTECTED]> wrote:
> For example in Middleware, in process_request. You could "monkeypatch"
> User on the fly.
Or he could use the standard, documented method for overriding a
model's get_absolute_url() method:
http://www.djangoproject.com/documenta
On Jan 29, 2008 10:04 PM, Mark Green <[EMAIL PROTECTED]> wrote:
> Just curious, what's the state of connection pooling in django?
My personal opinion is that the application level (e.g., Django) is
the wrong place for connection pooling and for the equivalent "front
end" solution of load balancin
On Jan 29, 2008 11:18 PM, Mark Green <[EMAIL PROTECTED]> wrote:
> I agree on the loadbalancer front but the overhead for all
> those TCP connections (and pgpool managing them) worries me a bit.
I've used pgpool in production with great success, so I'm not really
sure what overhead you're talking
On Jan 30, 2008 9:18 AM, Michael Hipp <[EMAIL PROTECTED]> wrote:
> Does Django have any built-in way to handle or prevent simultaneous,
> incompatible edits to a database record?
No, that's what your database's concurrency handling is for.
--
"Bureaucrat Conrad, you are technically correct --
On Jan 30, 2008 10:21 AM, Jarek Zgoda <[EMAIL PROTECTED]> wrote:
> Can you share any hints on how to reduce the memory usage in such
> situation? The underlying database structure is rather complicated and I
> would like to not do all queries manually.
At this level -- hundreds of thousands of ob
On Jan 30, 2008 8:57 AM, Mark Green <[EMAIL PROTECTED]> wrote:
> Well, "Build for failure". Temporary overload can happen at any
> time and I'd expect django to behave exceptionally bad in that
> case as it is.
Running out of resources is never a good thing for any system.
> Disclaimer: I haven'
On Jan 30, 2008 2:22 PM, Carl Karsten <[EMAIL PROTECTED]> wrote:
> title = models.CharField("Title", core=True, max_length=80, blank=True,
> null=True)
> surname = models.CharField("Surname", max_length=65, core=True,
> blank=True,
> null=True)
There's your culprit.
Whenever you try t
On Jan 30, 2008 6:01 PM, Mark Green <[EMAIL PROTECTED]> wrote:
> Ahem, there's a huge difference between being confronted with
> a spinner/progress bar or an error page. The former speaks
> "Please wait", the latter speaks "Try again".
OK, so let's break this down.
There are two potential cases
On Jan 30, 2008 8:55 PM, Mark Green <[EMAIL PROTECTED]> wrote:
> What ressources are held and wasted exactly?
> Maintaining a number of open TCP connection is much cheaper
> than creating/discarding them at a high rate.
Every connection that one Django application holds on to is a
connection that
> My question: what if I
> have a weblog title that is identical to a post that I made 3 years
> ago and I didn't realize it? when saving, is the slugfield smart
> enough to acknowledge that there is a duplicate entry.
The slug field itself doesn't force uniqueness, but you can use
"unique=True"
On Jan 31, 2008 5:06 PM, Chris <[EMAIL PROTECTED]> wrote:
> I've been reading up on user permissions and I have found that user
> permissions are on a per-model basis. My question: If I have a photo
> gallery application, and I have several uses who can post their
> galleries to this application.
On Feb 1, 2008 12:57 AM, django_user <[EMAIL PROTECTED]> wrote:
> I want every image to be uploaded in the users directory like '//
> %y/%m/%d' instead of all files in default location.
There is no built-in automatic solution for this. However, like many
things which are not built-in or automatic
On Feb 3, 2008 4:00 AM, Julien <[EMAIL PROTECTED]> wrote:
> What should I change to force the read-only access?
Create a new database-level user, and grant that user SELECT but
nothing else. Then fill in those credentials in the settings file used
by the site. You can always set up a read/write "
On Feb 3, 2008 6:37 AM, Julien <[EMAIL PROTECTED]> wrote:
> I found a trick that works for my use case. I just don't execute if
> it's not a SELECT request. I do the test like so:
Things your filter doesn't catch:
* PostgreSQL's table-creating SELECT INTO statement.
* Any "query" which consists
On Feb 3, 2008 7:59 PM, Julien <[EMAIL PROTECTED]> wrote:
> Could you please indicate how to do this?
Once again, either:
1. Set up a second Django settings file, fill in the read-only user
there, and use that settings file for the site that your clients use.
2. Write your custom query method s
On Feb 4, 2008 6:43 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> as you can see, I hide the primary and foreign key fields (yes, I am
> aware of the security implications: can we fix the real problem
> please ;-)
This is a real problem. You need to fix it, or someone will hack you.
>
>
On Feb 4, 2008 1:35 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> I'm confused. Normally, you can access an inner class simply:
...snip...
> but this dosen't work with Admin:
That's because django.db.models.Model is not a "normal" class, and
hence no Django model class is; it has a metacla
On Feb 4, 2008 2:50 PM, Mojave <[EMAIL PROTECTED]> wrote:
> Docs say I pass both the request object and the authenticated user
> object to the login method, but that fails - login expects only one
> argument.
Odds are that you are trying to call the *view* function
django.contrib.auth.views.login
On Feb 5, 2008 12:33 PM, David Marquis <[EMAIL PROTECTED]> wrote:
> If you didn't make any change to the Django source base, you can
> simply download the latest release and install the new version.
> If needed, you could also download the latest development version
> through the Subversion reposi
On Feb 6, 2008 1:43 AM, koenb <[EMAIL PROTECTED]> wrote:
> You could take a look at the multidb branch (specifically check out
> ticket #4747). It is a bit behind on trunk, but the basics should
> work. It allows you to define multiple connections, so you should be
> able to connect to the same db
On Feb 6, 2008 11:57 AM, Erwin <[EMAIL PROTECTED]> wrote:
> That sounds quite interesting, but I'm not totally sure what you are
> referring to. Do you mean the hooks the newforms admin branch provides
> or maybe the possibilities of the row-level permissions branch?
newforms-admin.
row-level-pe
On Feb 6, 2008 4:38 PM, Jacob Kaplan-Moss <[EMAIL PROTECTED]> wrote:
> ... though given the choices, I'd be inclined to wager that it's
> closer to "now" than to "the heat death of the universe"...
Probably, but I always include that in the time scale just in case.
You know how tricky it is to es
On Feb 6, 2008 3:30 PM, Chris <[EMAIL PROTECTED]> wrote:
> Does magic removal help to upgrade code from 91 to present or is it a
> set of code used to assist with writing a potential application that
> could do this?
"Magic-removal" is not a script or a piece of code. It was the name
given to the
On Feb 7, 2008 12:15 PM, Rajesh Dhawan <[EMAIL PROTECTED]> wrote:
> If he's trying to get the logged in user instance in, say, his models
> save() *and* he needs this to work from the Admin interface, he
> doesn't have request.user available.
That's what newforms-admin is for.
--
"Bureaucrat C
On Feb 7, 2008 11:44 AM, Henhiskan <[EMAIL PROTECTED]> wrote:
> > See:http://code.djangoproject.com/wiki/CookBookThreadlocalsAndUser
>
> Thanks a lot, is exactly that I was looking for
This is a really bad idea; in almost 100% of cases, it's better to be
writing something in your view which reads
On Feb 8, 2008 1:06 AM, Julien <[EMAIL PROTECTED]> wrote:
> Doesn't anybody really have an idea how to do this? :)
Yes: sit down and take a look at how the admin templates display the
list, then think about how you'd change it to produce a
element with individual elements for each value. In al
On Feb 8, 2008 9:15 AM, MADDY <[EMAIL PROTECTED]> wrote:
> User can select, for example, 3 options (not need to be consecutive)
> from 10 possible options using CTRL+mouse.
>
> When form is submited in database I found only one of those 3 options,
> the one at the bottom of 3 selected.
You want t
On Feb 8, 2008 1:50 PM, Narso <[EMAIL PROTECTED]> wrote:
> Normally this error is not fire, the form's action attribute get
> blank. But, when I set the TEMPLATE_STRING_IF_INVALID variable in the
> settings file to:
>TEMPLATE_STRING_IF_INVALID = 'Variable "%s" out of context'
> then the add_fo
On Feb 9, 2008 5:48 PM, newbiedoobiedoo <[EMAIL PROTECTED]> wrote:
> please take your instructions and put them up somewhere OFFICIAL,
> because
> I was following directions that were MUCH more complicated.
To be perfectly fair, the official installation instructions on
djangproject.com tell you
On Feb 10, 2008 3:37 AM, rihad <[EMAIL PROTECTED]> wrote:
> The first example (the search form) doesn't work either with the same
> error (str object is not callable).
The book was written for Django 0.96; while most things it covers
remain the same in the current development version, not all of
On Feb 10, 2008 5:59 AM, Darthmahon <[EMAIL PROTECTED]> wrote:
> Event.objects.filter(date__exact=datetime.now())
>
> Simple enough, but it throws up this error:
>
> AttributeError at /events/today/
> 'module' object has no attribute 'now'
You want to read the documentation for Python's datetime
On Feb 9, 2008 9:37 AM, Ramdas S <[EMAIL PROTECTED]> wrote:
> I am using Django-registration. It works like a charm as far as registering
> new users and validating them from potential bots. However, what is the best
> practice as far as getting users to feed in more information.
See django-regis
On Feb 11, 2008 11:02 AM, asj2008 <[EMAIL PROTECTED]> wrote:
> We are hitting an error that disables the entire website when we have
> more than 255 web pages...this is the error we see..has anyone seen
> this before? It does not seem to be in the documentation
It's a limit hard-coded into Py
On Feb 11, 2008 11:52 PM, a sanjuan <[EMAIL PROTECTED]> wrote:
> yes. the pages already make use of includes and of course inheritance, but
> each page has unique text content. it is a big commercial website
You know, if you've got a bunch of pages with different text, you can
use a database to s
On Feb 11, 2008 12:04 PM, Alex Ezell <[EMAIL PROTECTED]> wrote:
> Does anyone else think that 255 urls seems a little crazy?
Yes. This sort of thing is what mechanisms like include() are for.
--
"Bureaucrat Conrad, you are technically correct -- the best kind of correct."
--~--~-~--~-
On Feb 11, 2008 11:17 AM, Tim Chase <[EMAIL PROTECTED]> wrote:
> There are a couple possibilities that occur to me, but without
> seeing the code, it's hard to tell. Functions/methods can
> certainly take more than 255 parameters, though it may have to be
> done through *args/**kwargs format; or
On Feb 11, 2008 8:43 PM, a sanjuan <[EMAIL PROTECTED]> wrote:
> We use includes...those are actually 255 CONTENT pages...
You have over 255 URLs which don't offer any logical way to break them up?
--
"Bureaucrat Conrad, you are technically correct -- the best kind of correct."
--~--~-
On Feb 11, 2008 3:41 AM, Rozita <[EMAIL PROTECTED]> wrote:
> Can I test another way instead of moving my files?
You can hack around with your Python import path (Google will teach
you what that means).
But you really ought to be developing apps that can live independently
of a project folder.
On Feb 11, 2008 3:33 AM, Rozita <[EMAIL PROTECTED]> wrote:
> Is there any way that I can omit project name from import statements?
Yes.
Refactor your code so that the applications are no longer in the
project folder, and put them directly on the Python import path
instead. This is generally what
On Feb 12, 2008 5:00 AM, tom <[EMAIL PROTECTED]> wrote:
> How popular is Django among other Python Web Frameworks (TurboGears,
> Pylons, Webware, CherryPy...) ?
More popular than rotting meat. Not as popular as sliced bread. Beyond
that, hard to narrow down.
--
"Bureaucrat Conrad, you are tech
On Feb 12, 2008 1:46 PM, Albert Hopkins <[EMAIL PROTECTED]> wrote:
> It seems that 'exclude'ing on a M2M field does not have the effect I
> anticipated. Am I doing something wrong? Basically I have the
> following models
The real problem is that the SQL necessary to do an exclude() and have
it
On Feb 13, 2008 3:57 PM, zombat <[EMAIL PROTECTED]> wrote:
> So what do you use?
Emacs inside Terminal.
--
"Bureaucrat Conrad, you are technically correct -- the best kind of correct."
--~--~-~--~~~---~--~~
You received this message because you are subscribed
On Thu, Feb 14, 2008 at 3:01 PM, Ting Zhou <[EMAIL PROTECTED]> wrote:
> Could somebody tell me how to use autoescape in django?
http://www.djangoproject.com/documentation/templates/#automatic-html-escaping
--
"Bureaucrat Conrad, you are technically correct -- the best kind of correct."
--~--
On Fri, Feb 15, 2008 at 6:15 AM, dreamingbear
<[EMAIL PROTECTED]> wrote:
> I understand. I had the tag idea too, but still it seems to me that
> this is putting business logic in the V of MVC - don't get me wrong, I
> said that Django has a beautiful architecture. This is just pondering.
See t
On Feb 17, 2008 12:02 AM, Jean-Christophe Kermagoret <[EMAIL PROTECTED]> wrote:
> Hello, I'm coming from Java world and I'm looking in Django for a high
> level framework to write very quickly new applications.
> Does Django provide the following features ?
http://www.djangoproject.com/documentat
Most likely, you all have out-of-date versions of the MySQLDb adapter
(the Python module which lets Python talk to a MySQL database).
--
"Bureaucrat Conrad, you are technically correct -- the best kind of correct."
--~--~-~--~~~---~--~~
You received this message
On Feb 18, 2008 2:37 PM, web-junkie <[EMAIL PROTECTED]> wrote:
> why isn't whitespace automatically stripped from fields when using
> modelforms? This would be convenient.
Up until the moment you need to store some source code written in the
language Django uses.
--
"Bureaucrat Conrad, you are
On Feb 18, 2008 3:21 PM, mamcxyz <[EMAIL PROTECTED]> wrote:
> I wonder if exist a similar toolset as in ruby:
Believe it or not, this question has been asked before on this very
list; try searching the archive for suggestions.
--
"Bureaucrat Conrad, you are technically correct -- the best kind
701 - 800 of 3176 matches
Mail list logo