On Fri, Nov 14, 2008 at 3:56 PM, ek_wals <[EMAIL PROTECTED]> wrote:
> It seems to me that this kind of thing is easily translated to Django
> templates,
> quicker to type, easier to read, and infinitely extendable.
>
> Any thoughts before I begin playing?
Feel free to write it. I wouldn't get any
On Fri, Nov 14, 2008 at 5:49 PM, Eric Chamberlain <[EMAIL PROTECTED]> wrote:
> We have five or so ManyToMany fields (with 10,000+ and growing total
> entires in each field, only a few are selected for any one profile) in
> our user profile. When we bring up the profile in the admin, the page
> ta
Tonight we've released Django 1.0.1, a bugfix release in the 1.0
series containing improvements and fixes since the 1.0 release. This
is a recommended upgrade for anyone currently running Django 1.0.
The blog entry announcing the release is here:
http://www.djangoproject.com/weblog/2008/nov/15/10
so I can begin to get
> back on the right path here.
>
> Cheers,
Hi Dash,
I believe the method for bringing models up in 1.0+ has changed from
previous. Instead you need to now add the following:
from django.contrib import admin
in your import statements and then use the following
On Sat, Nov 15, 2008 at 7:37 PM, Malcolm Tredinnick
<[EMAIL PROTECTED]> wrote:
> Yep, looks like something went wrong there. James is offline at the
> moment, but he'll fix it when he gets a chance. The security-aware user
> will avoid using the tarballs until they're fi
On Sat, Nov 15, 2008 at 7:48 AM, leonel <[EMAIL PROTECTED]> wrote:
> Ive downloaded the tar.gz from
> http://www.djangoproject.com/download/1.0.1/tarball/
>
> and the md5sum does not match the md5sum from:
> http://media.djangoproject.com/pgp/Django-1.0.1-final.checksum.txt
OK, so here's what ha
On Sat, Nov 15, 2008 at 8:42 PM, James Bennett <[EMAIL PROTECTED]> wrote:
> 1. When I rolled the release last night, I did 'python manage.py
> sdist' to generate the package, then uploaded it to the
> djangoproject.com server.
(and obviously I meant 'setup.py sdi
On Sun, Nov 16, 2008 at 8:10 PM, Leonel Nunez <[EMAIL PROTECTED]> wrote:
> Will there be many changes for django with python 3
As this is a fairly common question, *please* consider searching the
list archives for information.
--
"Bureaucrat Conrad, you are technically correct -- the best ki
On Mon, Nov 17, 2008 at 10:26 PM, Horus Kol <[EMAIL PROTECTED]> wrote:
> TemplateDoesNotExist at /admin/doc/
>
> Anyone got any ideas?
It helps to have the admin docs application (which is *not*
'django.contrib.admin', but rather 'django.contrib.admindocs') in your
INSTALLED_APPS, so that its bun
Tonight, to clear up some problems with the packaging of the Django
1.0.1 release from Friday, we've released Django 1.0.2; once again,
this is a bugfix-only release, and is a recommended upgrade for anyone
targeting or using Django 1.0 or Django 1.0.1.
Weblog entry announcing the release is here
On Thu, Nov 20, 2008 at 2:02 PM, Epinephrine <[EMAIL PROTECTED]> wrote:
> How can I keep the field from being editable in the Admin edit page
> for that class?
I don't really mean to sound rude in saying this, but your best bet is
probably to read through the documentation for the admin:
http://
On Thu, Nov 27, 2008 at 8:12 PM, boloris <[EMAIL PROTECTED]> wrote:
> Can you help-me?
The error tells you that some edit you have made to your settings file
caused it to no longer be a valid Python source-code file. Your best
bet is to perhaps try out a Python tutorial to learn the Python
prog
On Thu, Nov 27, 2008 at 5:11 PM, Chris Smith
<[EMAIL PROTECTED]> wrote:
> From experience with other ORM platforms (nHibernate, custom built),
> I'd expect this to flatten out to a table with approximately the
> structure:
You probably want to read the official Django documentation on how
model i
ure it out and google has been no help. Has anyone seen this?
I'm running apache2, mod_python with nginx as a proxy. Django is trunk
(rev 9534)
Thanks,
James.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
&quo
If I browse to /media/css/login.css I see that css fine, so the
problem is the HTML (not paths).
I can't figure it out and google has been no help. Has anyone seen
this?
I'm running apache2, mod_python with nginx as a proxy. Django is trunk
(rev 9534)
Thanks,
James.
of the old
data and instead create symlinks to my local tunk version. That fixed
it up. My debugging clue was editing the admin templates with some
garbage only to see the resultant html not update. A few searches
later in python2.5/site-packages and all was clear.
On Nov 28, 4:38 pm, James
On Sat, Nov 29, 2008 at 3:19 AM, jai_python <[EMAIL PROTECTED]> wrote:
> Issue that I found out is "The variable 'colour' gets overwritten
> everytime when the user selects different values". Then how come it is
> possible that the request.POST shows all selected values. And why am
> not getting t
On Sat, Nov 29, 2008 at 5:25 PM, AJ <[EMAIL PROTECTED]> wrote:
> to the vairables self and commit. So as far as I can tell I can't do
> this in the Admin. It looks like I would need to write my own custom
> form and view. Is this correct, or is there another way to do this?
Consult the documen
On Sun, Nov 30, 2008 at 11:48 PM, David Shieh <[EMAIL PROTECTED]> wrote:
> I think your solution can resolve my problem.But does it a bit
> complex ?
> In fact , what I really want is a view function that will be called by
> every view function.
> i.e. , if I wrote an auth system , I need to authe
On Mon, Dec 1, 2008 at 3:05 PM, coldlight <[EMAIL PROTECTED]> wrote:
> Another one: in the file
Please don't do this; this is not the errata mailing list for "The
Definitive Guide to Django", it is the mailing list for discussion of
and by users of Django, and every time you post a message here y
On Tue, Dec 2, 2008 at 3:42 AM, Vince <[EMAIL PROTECTED]> wrote:
> 2. Is there any built-in opton in Django (0.97 version) to unzip
There is no such thing as "Django 0.97". Releases of Django are as follows:
0.90
0.91
0.95
0.96
1.0
(with minor bugfix releases on several of them, like "0.96.1" a
For what it's worth, I'm a huge fan of virtualenv:
http://pypi.python.org/pypi/virtualenv
and of Doug Hellmann's virtualenvwrapper:
http://www.doughellmann.com/projects/virtualenvwrapper/
What virtualenv does, basically, is create an isolated Python
environment into which you can install stuff
On Wed, Dec 3, 2008 at 11:45 AM, SteveB <[EMAIL PROTECTED]> wrote:
> I've had positive experiences with the standalone CherryPy webserver
> Although I can't prove it, I'm suspicious that the problem may be that
> Django is not thread safe. Can anyone state for a fact that it is
> safe to use Djan
On Thu, Dec 4, 2008 at 1:37 PM, ohmi <[EMAIL PROTECTED]> wrote:
> As the subject says - will Django compile and run on Python 3.0?
No, nor is it expected to for at least a year or two, something
entirely consistent with the general plan for pretty much all Python
software to migrate.
If you're g
I haven't heard anything and I think you should try posting this on
webhosting forums asking them.
On Thu, Dec 4, 2008 at 8:52 PM, John M <[EMAIL PROTECTED]> wrote:
>
> Anyone tried this for django? http://www.webkeepers.com/index.html
>
> entry level is 6.95/mo, great for QA site I would think.
On Fri, Dec 5, 2008 at 2:07 AM, Florian Lindner <[EMAIL PROTECTED]> wrote:
> Last time I used Django (pre 1.0) it was recommended to always use
> trunk since the last released version was too outdated. Has this
> changed?
Yes.
0.96 -> 1.0 involved a large number of backwards-incompatible changes
On Fri, Dec 5, 2008 at 3:45 PM, Manu <[EMAIL PROTECTED]> wrote:
> Has the source code for djangobook.com ever released ? Is there a plan
> to release it if it is not released ? And lastly does anyone know of
> any projects which can provide the comments functionality of
> djangobook.com ?
If you
On Tue, Dec 9, 2008 at 7:50 PM, tenni <[EMAIL PROTECTED]> wrote:
> "optional_field" becomes a required field in the Admin. I assume
> something is overriding the model's blank=True for this field.
Yes. *You* are overriding that.
The moment you override a field's definition in a ModelForm is the
I am running one django site on dreamhost and now i want to run another.
When setting up my site i needed to set DJANGO_SETTINGS_MODULE to my current
site. Now i want to run another site... How do i go about this.
Thanks
James
--
http://www.astorandblack.com
On Wed, Dec 10, 2008 at 6:28 PM, Django Newbie <[EMAIL PROTECTED]> wrote:
> This is probably an easy one, but I've tried what make sense to me with
> not success. What I want to do is in my admin pages, use the User
> module and enter the the user_id of whoever is logged in to add an entry
> in o
On Fri, Dec 12, 2008 at 6:24 PM, Malcolm Tredinnick
wrote:
> which isn't as far out of bounds as it looks. You get there from the 1.0
> release notes, to the porting document, which then links to that page.
> But, for people coming directly to Django 1.0, we've missed something.
> I'll fix that w
On Sat, Dec 13, 2008 at 5:55 AM, Lee wrote:
>If I want to return a specified column in this situation without
> using SQL query (select y from table where x =1), how to do it?
There is a method which will do this, and it is listed in the database
API documentation alongside all the other que
On Tue, Dec 16, 2008 at 7:44 AM, rtmie wrote:
> OK, got it working:
> changed view code to:
> if request.method =='POST':
>form = AppUserForm(request.POST,request.FILES)
This is covered in the forms documentation; you may want to give it a
read to learn how the django.forms module works
On Tue, Dec 16, 2008 at 8:23 AM, shabda wrote:
> Django registration has moved from googlecode to Bitbucket, which
> means my projects which are svn:externaled to django-registration
> might not get the latest code. Is anyone maintaining an svn repository
> which is I can svn:external to?
You kn
On Tue, Dec 16, 2008 at 7:19 AM, sagi s wrote:
> So I'm looking at the data available in the template to try to get my
> hands dirty and restore all this manually but can't find how all this
> magic works. I'm in the debugger looking at the form passed to the
> template via the context and this l
t;""
-name = models.CharField(_('name'), max_length=50)
+name = models.CharField(_('name'), max_length=100)
content_type = models.ForeignKey(ContentType)
-codename = models.CharField(_('codename'), max_length=100)
+codename = models.Char
On Wed, Dec 17, 2008 at 11:32 AM, Travis Veazey
wrote:
> if you have a database you risk
> being exposed to SQL injection attacks if you do not harden your app against
> them.
This is actually two statements:
1. If you have a SQL database, you run some theoretical risk of SQL
injection attacks
On Wed, Dec 17, 2008 at 5:21 PM, Malcolm Tredinnick
wrote:
> This would be the "standard" solution. I thought James Bennett's
> django-profiles app did this, but apparently I'm mistaken (it would be
> slightly duplicated work if it did, in any case).
django-pr
On 12/17/08, Russell Keith-Magee wrote:
>
> On Wed, Dec 17, 2008 at 9:30 PM, James PIC wrote:
> >
> > Is it worth reporting the bug?
>
> However, at a guess, I'm going to say that the problem has been caused
> by your choice of model names. You appear to
els/base.py.
Regards, James.
--~--~-~--~~~---~--~~
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
On 12/19/08, Peter wrote:
>
>
> >
> > You could make such a check and deny the saving of a new FrontPage
> > object by overloading the save() method of class FrontPage.
> > Source in trunk: django/db/models/base.py.
> >
> > Regards, James.
>
On Fri, Dec 19, 2008 at 12:41 PM, lekvar...@gmail.com
wrote:
> Hi, I wanna know wich of the well known frameworks is the best choice
> for myspace-clone community website.
Since you're basically going to be throwing money away no matter what
("cloning" an established player and trying to beat th
>> Just for kidding:
>> class Lot(Mandat, Bien, PourLocation, PourVente, LotAddresse,
>> AvecEquipementsAnnexes, Textes, Immeuble):
>> It was that, or models with thousands of similar fields, high WTF/hour :)
>
> just be thankful you aren't coding in german :)
It's very business-spec
ch what is currently the front page (or to
>> audition the new front page).
>>
>
> Yes - perhaps add a Boolean field (not shown in the admin)
> 'is_active'
Very relevant, don't forgot to overload the save method to set
other is_active to 0!
Regards, James.
-
On Sat, Dec 20, 2008 at 3:02 PM, Bradley Wright wrote:
> Given the following code, can anyone explain why Django can't reverse
> this, because I'm of the opinion that reverse is the flakiest function
> ever:
The permalink decorator is a shortcut which will, on its own, apply
reverse() to what th
On Sun, Dec 21, 2008 at 4:46 PM, Mirat Can Bayrak
wrote:
>
> hi, i have a state selection which has options "exists", "not exists" and
> "redirected" when it is selected as exists i want to show some more fields,
> but on other selections i dont want him to show them. can i do that it django?
Errata, this email has correct sources, sorry for the pollution.
On Sun, Dec 21, 2008 at 4:46 PM, Mirat Can Bayrak
wrote:
>
> hi, i have a state selection which has options "exists", "not exists" and
> "redirected" when it is selected as exists i want to show some more fields,
> but on other s
On Fri, Dec 26, 2008 at 3:15 PM, waltbrad wrote:
> How much of django's code is broken with python 3.0?
The installation instructions and the installation FAQ cover this issue:
http://docs.djangoproject.com/en/dev/intro/install/#install-python
http://docs.djangoproject.com/en/dev/faq/install/#
On Sun, Dec 28, 2008 at 7:19 PM, Alessandro Ronchi
wrote:
> Django itselfs permits selecting the i18n language via POST. I think
> it should be useful to add also a GET var to set the language, and a
> localization middleware catches it.
This has been debated to death, and the conclusion is that
On Mon, Dec 29, 2008 at 3:02 AM, Vicky wrote:
> command like below is not working... can u suggest a way??
It is very, very, very, very important to read the big warning at the
top of the template documentation, which states that the Django
template language *is not* just Python code embedded in
I tried using the guide here:
http://docs.djangoproject.com/en/dev/howto/deployment/fastcgi/?from=olddocs
to set up Django using FastCGI.
1. It kept just hanging with a never ending loading cursor whenever I
tried going to the fcgi page. I eventually discovered, through immense
trial and error,
On Mon, Dec 29, 2008 at 3:38 AM, Shuge Lee wrote:
> return render_to_response( 'a.html', {'obj': obj, 'category':
> Category} )
>
> a.html
> ...
> {% load comments %}
> {% render_comment_form for category %}
The problem may be that you are passing Category -- the model which
represents all categ
Which host are you using? I am on dreamhost and it works very nice. also try
searching on google your hosts name and django to see if someone created a
tutorial on it.
On Tue, Dec 30, 2008 at 12:57 AM, James Gregory wrote:
>
> I tried using the guide here:
> http://docs.djangoproject.c
Thank you for your interest in Django. You may also post this job offer on
djangogigs.com
Much Success
James
On Mon, Dec 29, 2008 at 8:00 PM, Pancrazio wrote:
>
> Hi group!
>
> we are a startup working on a community-based music production
> website.
>
> We are looking
On Jan 5, 2:21 am, HB wrote:
> Hey,
> I'm reading "The Definitive Guide To Django" but it is too out dated.
> Do you recommend "Practical Django Projects" instead?
> It seems to me that "The Definitive Guide To Django" is more organized
> and covers a lot of materials.
> What do you think?
As th
On Jan 5, 6:04 am, HB wrote:
> Sure, I mean encourage not force :)
Your email client apparently failed to generate tests for your
message, resulting in a misunderstanding.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Gro
Netbeans or WingIDE for me.
On Tue, Jan 6, 2009 at 1:48 PM, HB wrote:
>
> Hey,
> What is your favorite IDE for coding Django projects?
> Any ideas about PyDev and ActiveState Komodo IDE?
> Thanks.
> >
>
--
http://www.goldwatches.com/
http://www.jewelerslounge.com/
--~--~-~--~~--
Yes it is however i still find it to be very powerful and i really like it!
On Tue, Jan 6, 2009 at 2:00 PM, Nikolay Panov wrote:
>
> Emacs (23, +Rope, +auto-complete.el), indeed.
>
> Have a nice day,
>Nikolay.
>
>
>
> On Tue, Jan 6, 2009 at 14:48, HB wrote:
> >
> > Hey,
> > What is your favo
Thank You (I had the same question today)
2009/1/12 burcu hamamcıoğlu
> Thanks Bruno request.get_full_path() is enough for me .
>
> Best regards
>
> 09 Ocak 2009 Cuma 18:31 tarihinde bruno desthuilliers <
> bruno.desthuilli...@gmail.com> yazdı:
>
>
>>
>>
>> On 9 jan, 17:06, "burcu hamamcıoğlu"
Not always sometimes you want to show some template code (You have a blog
about web dev) and sometimes you want to nest some code.
On Sun, Jan 11, 2009 at 10:04 PM, Diez B. Roggisch wrote:
> Alex K schrieb:
>
>> While building a website using template inheritance one usually does
>> the following
m
97. form = form_class(instance=self.model,
jpic_field_options=options)
Exception Type: TypeError at /component/1/ticket/create/
Exception Value: __init__() got an unexpected keyword argument
'jpic_field_options'
Please don&
On Tue, Jan 13, 2009 at 11:57 AM, James PIC wrote:
> That's what i'm actually trying to do:
>
> # todo : get a more descriptive FC prefix than "jpic"
> class JpicModelFormMetaclass(ModelFormMetaclass):
>"""
>Inherit from this, then u
-- Forwarded message --
From: Philip Gatt
Date: Wed, Jan 14, 2009 at 7:10 AM
Subject: [wingide-users] Integrating with django's unit tests
To: wingide-us...@wingware.com
Does anyone know how to integrate Wing with Django's unit tests? With my
django projects, I usually run my uni
uggestions are
welcome!
Please help!
James
--~--~-~--~~~---~--~~
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
On Thu, Jul 17, 2008 at 2:14 AM, Phillip Parrin
<[EMAIL PROTECTED]> wrote:
> I'm also looking for the souce code, mainly i'm looking for the
> advanced templates you mention when building the weblog. Did you get
> the chance to finish the source?
I'm tracking down one other reported issue which -
On Wed, Jul 16, 2008 at 6:05 PM, Henrik Bechmann <[EMAIL PROTECTED]> wrote:
> 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 sho
I don't see much but it seems your aren't mapping you urls properly. Please
post your urls.py on http://dpaste.com/ then email the link.
On Thu, Jul 17, 2008 at 4:48 AM, zbiju <[EMAIL PROTECTED]> wrote:
>
> Hi guys,
>
> I'm noobie with python and django but I would like to try it.
> I have instal
I believe this is the page he is referring to:
http://code.djangoproject.com/wiki/NewformsAdminBranch
Another one that might be helpful:
http://code.djangoproject.com/wiki/NewformsHOWTO
--James
On Sat, Jul 19, 2008 at 1:04 PM, Ramdas S <[EMAIL PROTECTED]> wrote:
> Tom,
>
> Can
On Sun, Jul 20, 2008 at 6:57 AM, Hussein B <[EMAIL PROTECTED]> wrote:
> I got that illusion due the slow official releases cycle...
Be careful with this logic, because it is misleading. For example:
Britain has not had a new Prime Minister since June 2007; does this
mean the British Government ha
On Mon, Jul 21, 2008 at 4:12 PM, Amit Ramon <[EMAIL PROTECTED]> wrote:
> autodiscover() goes over INSTALLED_APPS and tries to import their admin
> modules. When such a module isn't present, ImportError is caught and
> consumed. However, if some admin module do exists, but for some reason it
> t
On Mon, Jul 21, 2008 at 4:09 PM, Django_newbie <[EMAIL PROTECTED]> wrote:
> This save() fails because the form.is_valid() is not true, and the
> Blog(foreignkey) field is missing from the post data, how can i make
> this save without letting user choose this blog field? Or is it
> necessary that t
recommend for
> you. All I can say is that none of your attempts will work without
> Meta being instantiated, which Django doesn't (and likely won't) do.
I'm trying to use the value of a field of the model for Meta verbose_name.
James
--~--~-~--~~~-
I would recommend on learning python before looking at django. It would
explain why things have to be in your PYTHONPATH and answer many questions
Etc..
On Tue, Jul 22, 2008 at 2:01 AM, Kenneth Gonsalves <[EMAIL PROTECTED]>
wrote:
>
>
> On 22-Jul-08, at 12:36 PM, Sthembile Ngidi wrote:
>
> > I'm
2008/8/18 Will Rocisky <[EMAIL PROTECTED]>:
> actually I have to do it in views, not template
> I need some pure python code
All Python datetime objects support the 'strftime' method, which is
what you want to use. Consult Python's documentation for the full
details.
--
"Bureaucrat Conrad, you
To deploy my apps i use a set of bash and python scripts. They are useful
because of unique environment i am deploy in.
On Tue, Aug 19, 2008 at 8:25 AM, Norman Harman <[EMAIL PROTECTED]>wrote:
>
> Robin wrote:
> > Hello,
> >
> > I am trying to decide which tool should I use to deploy my django
>
I assume you are using linux. But in windows it's like this
import os
os.environ ['USERPROFILE'].split('\\')[-1]
James
On Wed, Aug 20, 2008 at 9:53 AM, PeteDK <[EMAIL PROTECTED]> wrote:
>
>
>
> On 20 Aug., 17:56, "Emily Rodgers" &
big issue then make a poll and people can vote on what
they want.
James
P.S I don't use googles web interface for me it's outlook express (mailing
list)
On Wed, Aug 20, 2008 at 2:03 PM, Norman Harman <[EMAIL PROTECTED]>wrote:
>
> Malcolm Tredinnick wrote:
> > Because
-- Forwarded message --
From: Daniel Bickett <[EMAIL PROTECTED]>
Date: Wed, Aug 20, 2008 at 9:07 PM
Subject: Prevalent Python/Django academic software
To: [EMAIL PROTECTED]
Is anyone working on any software at present, using django or python
in general, which serves various academ
On Thu, Aug 21, 2008 at 1:50 AM, Rodney Topor <[EMAIL PROTECTED]> wrote:
> So: Why is the use of explicit URLs discouraged, especially in
> templates? Why is it better to write {% url
> project_name.app_name.views.results %} in a template than to write /
> results/ (assuming the URLconf maps /res
On Thu, Aug 21, 2008 at 4:51 AM, Will Rocisky <[EMAIL PROTECTED]> wrote:
> Is it possible (like Rails) to not to enter every method and it's url
> everytime? And url should go to the method straight unless defined.
No.
1. Python's general philosophy is that it's best to explicitly say
what you w
Try FORCE_SCRIPT_NAME="" I use it and it works nicely
James
On Thu, Aug 21, 2008 at 9:00 AM, Nick Clarey <[EMAIL PROTECTED]>wrote:
>
> Hi all,
>
> I've been getting my site ported over to 1.0 beta and ran into a
> problem. Basically everything works f
Hi,
First go to ./manage.py shell and try the same thing "import
djproject.daily_source". If it works there it means it's not a django issue
and your server is stripping out this lib (Suexec)
James
On Thu, Aug 21, 2008 at 1:38 AM, 杨明 <[EMAIL PROTECTED]> wrote:
>
&g
httpd was rewriting it
to point to / and django was putting in
the script. All you needed to do it tell django to stop and it works wonders
:)
Enjoy!
James
On Thu, Aug 21, 2008 at 11:16 AM, Nick <[EMAIL PROTECTED]> wrote:
>
> Hi Malcolm,
>
> Great; James' suggestion d
When i run on a shared provider i restart my server by running touch
/mywebdir/dispatch.fcgi
On Fri, Aug 22, 2008 at 6:45 AM, Emily Rodgers <[EMAIL PROTECTED]>wrote:
>
> Hi Ronaldo,
>
> It is not a python script, just a shell script that either runs 'python
> manage.py runfcgi' with various opti
On Sat, Aug 23, 2008 at 3:57 AM, Viktor Nagy <[EMAIL PROTECTED]> wrote:
> is this true or both my test and real code are simply wrong? I was
> kinda shocked from this
The problem here is basically conceptual. You've assumed that, because
it supports some of the same operations as a list, a QueryS
On Sun, Aug 24, 2008 at 5:04 AM, aleray <[EMAIL PROTECTED]> wrote:
> Really no idea ?
Well, you could always do the following:
>>> from django.contrib import admin
>>> help(admin.site)
Which shows you full API documentation for the AdminSite class,
listing all of its methods and what they do, i
On Sun, Aug 24, 2008 at 6:40 AM, aleray <[EMAIL PROTECTED]> wrote:
> Thanks for the tip, I often forgot the existence of python doc!
> However the thing is in the version of django I'm using there is not
> admin.site, so no API to unregister. Like I said, the models are
> registered with the old f
On Sun, Aug 24, 2008 at 7:07 AM, coan <[EMAIL PROTECTED]> wrote:
> I wonder why custom error messages are considered more dangerous than
> the help_text in the same form?
Because people do things like this:
class HackMySiteForm(forms.Form):
some_text = forms.CharField(max_length=255)
de
On Sun, Aug 24, 2008 at 6:23 AM, James Bennett <[EMAIL PROTECTED]> wrote:
> Which shows you full API documentation for the AdminSite class,
> listing all of its methods and what they do, including this one:
(and of course if you have DJANGO_SETTINGS_MODULE set properly,
there's
On Sun, Aug 24, 2008 at 7:26 AM, Mark <[EMAIL PROTECTED]> wrote:
> Are there better ways to do this?
Yes.
from django.db import models
from django.contrib.auth.models import User
class Car(models.Model):
brand = models.CharField(max_length=20)
color = models.CharField(max_length=10)
2008/8/25 krylatij <[EMAIL PROTECTED]>:
> You can use ThreadLocals middleware
> http://code.djangoproject.com/wiki/CookBookThreadlocalsAndUser
> to get current user
No.
There is no longer any reason whatsoever to use this in any way in the
admin. It was an ugly, fragile hack before and it's unn
2008/8/26 marsii <[EMAIL PROTECTED]>:
> But I have the same error still. :-(
I'll bet money that you have this:
import markdown
When the book tells you to do this:
from markdown import markdown
There's a very important difference.
--
"Bureaucrat Conrad, you are technically correct -- the b
install
Django.
James
On Tue, Aug 26, 2008 at 1:24 PM, richr <[EMAIL PROTECTED]> wrote:
>
> Make sure the unzipping tool that you used to uncompress the Django
> kit preserves empty files like __init__.py. WinZip, in particular,
> does not always do this.
>
> On Jul 15, 1:
As part of the run up to the final Django 1.0 release (scheduled for
next week!), tonight we've pushed out Django 1.0 beta 2, including the
final new features for 1.0 (mainly a refactoring of
django.contrib.comments). As a beta release, we of course don't
recommend it for production use, but if yo
On Wed, Aug 27, 2008 at 7:41 AM, <[EMAIL PROTECTED]> wrote:
> Could I do this with Django?
You could do it with Python, and then use Django to make it visible
over the Web, yes.
--
"Bureaucrat Conrad, you are technically correct -- the best kind of correct."
--~--~-~--~~-
Use sqllite instead of a regular DB Server. Also set a usage limit on Apache.
You Should be fine. Many people run Django in a shared environment.
like Webfaction and Dreamhost. Where you have a limit on the memory
you can use.
On Wed, Aug 27, 2008 at 1:14 PM, Edwin W <[EMAIL PROTECTED]> wrote:
>
Make the structer
sitedir (manage.py urls.py,settings.py)->app(models.py views.py)
And import it accordingly If your code is running in the sitedir then
it should be able to import it.
On Wed, Aug 27, 2008 at 12:34 PM, Tim Kersten <[EMAIL PROTECTED]> wrote:
>
> Your app folder must be in the
In your forum code you can add the clean_imageForm and add your cleaning
code in there.
On Wed, Aug 27, 2008 at 11:39 AM, Rajesh Dhawan <[EMAIL PROTECTED]>
wrote:
>
> Hi,
>
>> I have an image upload form and I want to INvalidate the form if the
>> uploaded image it too big. How can I get an error
Whoops I pressed send too soon. In your forms code create a method called
clean_imageForm and add your custom error code there.
On Wed, Aug 27, 2008 at 1:33 PM, James Matthews <[EMAIL PROTECTED]> wrote:
> In your forum code you can add the clean_imageForm and add your cleaning
> c
When you create a project you run a command (python manage.py startapp test)
that creates the directory and the model and view files. However if you want
the app to use the admin interface you must explicitly state it in your
models.py file or admin.py (which you need to create) If you wish to
auto
101 - 200 of 3176 matches
Mail list logo