On Wed, Feb 4, 2009 at 11:05 PM, jason wrote:
>
> hello all.
> i followed the django tutorial, to the second part ,when activate the
> admin site, typing url 'http://localhost:8000/admin/' in the browser's
> address bar, this error showed up.
> my django version is 1.0.2, and python version is 2.
ject website?
> i think the differences of the version of django may confuse greener a
> lot.
>
> On Thu, Feb 5, 2009 at 12:14 PM, ethan zou wrote:
>
>> now it works.
>> thanks a lot.
>>
>> On Thu, Feb 5, 2009 at 12:10 PM, Alex Gaynor wrote:
>>
On Thu, Feb 5, 2009 at 2:25 AM, Gordon wrote:
>
> Form 1 Template (rendered from view):
> http://dpaste.com/116827/
>
> Form 2 Template (included in Form 1):
> http://dpaste.com/116826/
>
> View Code:
> http://dpaste.com/116828/
>
> Form 2 Code:
> http://dpaste.com/116829/
>
> Once again, the pro
On Thu, Feb 5, 2009 at 7:20 AM, Muslu Yüksektepe
wrote:
> @Rama:
> where can i add this code?
>
> and i wanna use like this.
>
> my items:
> -
> aa
> aaa
>
> a
> bb
> bbb
> b
> ccc
> cc
> cc
> --
> my list:
> a b
On Thu, Feb 5, 2009 at 10:21 AM, Carlos Pero wrote:
>
> Searching this group, I found a number of ways to iterate over a
> dictionary in a template to get access to both the key and the value.
> However, none of them covered the technique mentioned in this blog
> post:
>
>
> http://www.zedkep.com
On Thu, Feb 5, 2009 at 10:25 AM, Ales Zoulek wrote:
>
> Hi.
>
> Is there any way, how to easily redefine RelatedManager.get_query_set()
> method?
>
> Here is an example situation:
>
> class Table(models.Model):
> number = models.IntegerField()
>
> class Guest(models.Model):
> confirmed = models
On Thu, Feb 5, 2009 at 10:03 AM, Muslu Yüksektepe wrote:
>
> can u give me one example?
>
> i dont understand
>
>
> On 5 Şubat, 16:35, Alex Gaynor wrote:
> > On Thu, Feb 5, 2009 at 7:20 AM, Muslu Yüksektepe
> > wrote:
> >
> >
> >
> >
On Thu, Feb 5, 2009 at 11:52 AM, felix wrote:
> try deseb
>
> http://code.google.com/p/deseb/
>
> Its ... magic (good and bad. mostly good in this case)
>
> I simply run:
>
> ./manage.py evolvedb
>
> and the SQL to be run is shown to me with the option to run it
>
>
> and then the option to sav
problem with this is before it displays the actual
> errors it is displaying __all__. So it looks like this:
>
> __all__
> Error message raised by my custom validation
>
>
> Thanks again for previous help!
>
> On Thu, Feb 5, 2009 at 6:31 AM, Alex Gaynor wro
On Thu, Feb 5, 2009 at 3:09 PM, George Sakkis wrote:
>
> Hello,
>
> I am looking at the raw sql executed when I run a delete or update on
> a QuerySet and it appears that it does a redundant "select *" for the
> queryset before the actual delete/update. For example
>
> delete_ids = (108, 107, 106)
On Thu, Feb 5, 2009 at 3:18 PM, John M wrote:
>
> I tried to find this in the admin code, but was unsuccessful.
>
> If I have a model with a 1-1 relationship, and in my admin.py I
> specify that the 1-1 related model is in an INLINE, I notice that the
> admin interface is smart enough to add a ne
On Thu, Feb 5, 2009 at 3:24 PM, George Sakkis wrote:
>
> On Feb 5, 3:13 pm, Alex Gaynor wrote:
> > On Thu, Feb 5, 2009 at 3:09 PM, George Sakkis >wrote:
> >
> >
> >
> >
> >
> > > Hello,
> >
> > > I am looking at the raw
On Thu, Feb 5, 2009 at 5:59 PM, djandrow wrote:
>
> Thanks, that has helped me quite abit. But I still have one issue.
> When trying to look at the pages I create I get the following:
>
> Traceback (most recent call last):
>
> File "C:\ProgLangs\Python25\Lib\site-packages\mod_python
> \importer.
On Thu, Feb 5, 2009 at 7:15 PM, djandrow wrote:
>
> Thank you, i will try creating a symlink. I'm a bit confused about
> the PythonPath though, is the python path an environment variable or
> is it defined in the httpd conf or a 3rd place?
>
> I know I have:
>
> PythonPath "['C:/Program Files/A
On Thu, Feb 5, 2009 at 8:22 PM, min wrote:
>
> Hi.
>
> In the following templates file, we can get the value of zip by using
> ' request.GET['zip'].strip()' in the views.py
>
>
>
>
> Zip
>
>
>
>
>
> However, if the 'zip' input was changed into a Selec
; and 'test2' in the SelectMultiple
> widget, the value in the "request.GET['selectM'].strip()" is only
> 'test2'.
>
> If I want get all the values which I have selected, how to do that?
>
>
>
>
>
> On Feb 6, 12:24 pm, Alex Gayn
On Fri, Feb 6, 2009 at 2:11 AM, ranjan.Kumar wrote:
>
> hi all..
>
> I am trying to automate tests for my website and i need to know the
> way in which i can get the code coverage report of the tests. I found
> 'coverage.py' which gives the coverage report of 'statements' but
> couldn't find any w
mage1aciklama = ""
> self.image1sil = False
> super(Fotoalbum, self).save()
>
> def get_tag_list(self):
> return re.split(" ", self.tags)
>
> def __unicode__(self):
> return self.baslik
>
> my django version is
On Fri, Feb 6, 2009 at 7:39 AM, Muslu Yüksektepe
wrote:
> i tryed but it doesnt work.
>
> 2009/2/5 Muslu Yüksektepe
>
> thanx i will try tomorrow.
>> i hope it will be ok
>>
>
>
> >
>
You need to provide more information than simply it doesn't work, try
dpasting a traceback.
Alex
--
"I disappr
t; c6
>
> and
>
> i wanna use letter like this
> a b c d e f g
>
> when i click "a" it have to show only
> a1
> a2
> a3
> a4
> or click "b"
> b2
> b3
> b4
> b5
> b6
>
> later i wanna choose titles.
> i hope i c
On Fri, Feb 6, 2009 at 12:01 PM, Karen Tracey wrote:
> On Fri, Feb 6, 2009 at 11:51 AM, Edgard Matos wrote:
>
>> Somebody can help me?
>>
>
> Not likely, without some more information. As Ned said in the first reply
> to your original query, you have not shown us enough of your code. You have
>
On Fri, Feb 6, 2009 at 12:09 PM, Karen Tracey wrote:
> On Fri, Feb 6, 2009 at 12:05 PM, Alex Gaynor wrote:
>
>> I'm fairly certain PIL doesn't work on Google App Engine so I think google
>> has their own image module, you should consult the GAE documentation.
On Fri, Feb 6, 2009 at 12:43 PM, Kevin Audleman wrote:
>
> I'm building a simple time tracker. It has a table Clients and a table
> Projects and there is a one-to-many relationship between them. I have
> a field called hourly_rate that is in both tables. The reasoning is
> that in general the hou
def save():
>self.hourly_rate = client.hourly_rate
>...
>
> Or is there some other way of working across the relationship?
>
> Cheers,
> Kevin
>
> On Feb 6, 9:46 am, Alex Gaynor wrote:
> > On Fri, Feb 6, 2009 at 12:43 PM, Kevin Audleman <
>
On Fri, Feb 6, 2009 at 2:45 PM, Alvaro Mouriño wrote:
>
> Hi list,
>
> None of the context processors are being executed, not only my own,
> django's context processors aren't either. I've been developing with
> django for about a year now and this is the first time something like
> this happens t
On Fri, Feb 6, 2009 at 11:32 PM, Seamus wrote:
>
> 1. Is there documentation for __search? (I swear I looked long and
> hard)
> 2. When using MySQL, do I need to manually alter the table for the
> FULLTEXT index?
>
> Thanks in advance.
>
> Seamus
> >
>
1) It's mentioned here:
http://docs.djangopr
On Sat, Feb 7, 2009 at 11:14 AM, Guri wrote:
>
> Hi,
>Its been now approx. 6 months I am working with Django and
> I must say all issues that came my way were solved either by this or
> that post, blog, tutorial. Support of Django is marvelous.
> This time I am stuck with a d
On Sat, Feb 7, 2009 at 8:08 PM, J wrote:
> Truly amazing. I would have never guessed that the OR operator would
> combine two querysets. How does that work?
>
> Thanks for your help. You solved my problem.
> J
>
>
>
>
> Russell Keith-Magee wrote:
>
> On Sun, Feb 8, 2009 at 8:03 AM, J
> wrote:
On Sat, Feb 7, 2009 at 8:25 PM, redmonkey wrote:
>
> Thank you very much. That solved it, gave me all the information I
> needed to not make the same mistake again, and taught me a quick way
> to check the encoding of strings in python.
>
> As it happen, in this case, the script that generates the
On Sat, Feb 7, 2009 at 10:27 PM, python6009 wrote:
>
> Hi,
>
> I am using matplotlib/pyplot on my site to dynamically generate PNG
> plots. And I am experiencing dramatic memory leaks. Within 10-15
> hits, my Apache process grows from 15-20M to 100M.
>
> I am using Django 1.0.2-final, Apache 2.2
On Sun, Feb 8, 2009 at 11:20 AM, Petite Abeille wrote:
>
>
> On Feb 8, 2009, at 5:17 PM, Peter2108 wrote:
>
> > Thanks. Between posting and your response I found out that MySQL
> > has built in support for full-text searchs but PostgreSQL does not.
>
> Hmmm...
>
> http://www.postgresql.org/docs/8.
On Sun, Feb 8, 2009 at 12:32 PM, adrian wrote:
>
>
> The doc under "Using the built-in reference" says:
>
> Django's admin interface includes a complete reference of all
> template tags and filters available
> for a given site. To see it, go to your admin interface and click
> the "Documentatio
On Sun, Feb 8, 2009 at 3:06 PM, Patricio Palma wrote:
>
> Greetings
>
> I have a model
>
> from django.contrib.auth.models import User
> class MyUser(User):
>
>chilean_rut = CLRutField(_('RUT'),primary_key=True)
>
>class Meta:
>
> admin = meta.Admin(
>fields = (
>(_(
On Mon, Feb 9, 2009 at 12:06 AM, Vitaly Babiy wrote:
> Hello everyone,
>
> I am working on a project that will need to make a request out to the web
> and pull down some data, For testing purpose I was wonder what would be the
> best way to test this. I don't want to make the actual request durin
TP server at the beginning of the
> test and keep it around till all test are done. And have a way to tell the
> server what to return on the request.
>
> Vitaly Babiy
>
>
> On Mon, Feb 9, 2009 at 12:08 AM, Alex Gaynor wrote:
>
>>
>>
>> On Mon, Feb 9, 2009 a
On Mon, Feb 9, 2009 at 12:18 AM, Vitaly Babiy wrote:
> Yea, but I see a few problems whit that solution:
>
>- Hacky
>- Still not guaranteed to work( it could take more time)
>- Would really slow down the tests
>
> Vitaly Babiy
>
>
> On Mon, Feb 9, 2009
On Mon, Feb 9, 2009 at 12:28 AM, Vitaly Babiy wrote:
> Yeah, it does. I am going to have to look to see if can find a better stand
> alone server to do this instead of patching django.
>
> Vitaly Babiy
>
>
> On Mon, Feb 9, 2009 at 12:22 AM, Alex Gaynor wrote:
>
>>
&
On Mon, Feb 9, 2009 at 12:37 AM, gganesh wrote:
>
> hi ,
> help to find the difference between get() and filter() function in
> django ,both seems to retrieve records from data base .
> Thanks
>
> >
>
filter() returns another QuerySet, that is it returns multiple objects,
get() returns a single
On Mon, Feb 9, 2009 at 7:42 AM, Séno Hervé Edorh wrote:
> Hi,
> I am new in django world and i am a french speaker but i will try to speak
> english in this mailling list. I have buy the book, Pratical Django projects
> of James Bennett and i have a problem somewhere. this is the error
>
> archiv
On Mon, Feb 9, 2009 at 9:01 AM, Andrew Ingram wrote:
>
> have you looked on djangosnippets.org?
>
> 2009/2/9 jeffself :
> >
> > Is there a presentation available that I can use? Would like to skip
> > the whole building of the presentation myself if possible. If there
> > isn't one, I may creat
On Mon, Feb 9, 2009 at 9:05 AM, Vincent wrote:
>
> On 9 fév, 12:25, Graham Dumpleton wrote:
> > By using a separate system they ensure there application is portable
> > to different hosting mechanisms, which will be good protection given
> > that mod_python is dying a slow death and is unlikely
On Mon, Feb 9, 2009 at 11:11 AM, claudio.br...@googlemail.com <
claudio.br...@googlemail.com> wrote:
>
> Hi
>
> I am new to django and have just started to play. I have a working
> (small) app but wanted to turn on the admin console for the project. I
> edited the settings.py to include the admin
On Mon, Feb 9, 2009 at 11:27 AM, Scott wrote:
>
> Hello,
>
> I'm receiving the following error while running Django 0.96 with
> Google App Engine:
>
> UnicodeDecodeError at /
> 'ascii' codec can't decode byte 0xe3 in position 0: ordinal not in
> range(128)
>
> GET
> Request URL:http://localho
On Mon, Feb 9, 2009 at 12:00 PM, Robert Ramírez Vique wrote:
> Hello,
>
> I have been working on some forms which has some ajax behaivour, and I use
> some css and javascripts. This can be used inside a form with {{ form.media
> }}, which outputs the html tags necessary to import all the javascrip
On Mon, Feb 9, 2009 at 3:40 PM, Julien Phalip wrote:
>
> On Feb 9, 7:20 pm, Julien Phalip wrote:
> > Hi,
> >
> > This is a strange case. I have a simple blog entry model which can be
> > edited in the admin, from the URL that looks like:
> http://www.example.com.au/admin/blog/entry/52/
> >
> > N
On Mon, Feb 9, 2009 at 5:18 PM, Serge S. Koval wrote:
>
> Hello,
>
> I'm fairly new Django user, but have some background experience with
> other frameworks. Sorry if this topic was discussed before, but I was
> not able to find any mention of it.
>
> My question is related to architectural deci
On Mon, Feb 9, 2009 at 6:24 PM, claudio.br...@googlemail.com <
claudio.br...@googlemail.com> wrote:
>
>
>
> On 9 Feb, 19:16, Daniel Roseman wrote:
> > On Feb 9, 6:57 pm, "claudio.br...@googlemail.com"
> >
> > wrote:
> > > Hi Alex
> >
> > > Yes I have the line from django.contrib import admin" in
On Mon, Feb 9, 2009 at 9:11 PM, Malcolm Tredinnick wrote:
>
> On Sat, 2009-02-07 at 12:40 -0800, seanbrant wrote:
> > Im have troubling figuring about a good solution for blog posts. I
> > have created a ABC called Entry which Post, Link, Photo, Quote
> > inherit.
>
> It would help others to defi
On Mon, Feb 9, 2009 at 10:18 PM, khsing wrote:
>
> I want design a group that can contain other groups, and one group can
> belong many groups.
>
> I write such code below, but not right.
>
> class Group(models.Model):
>groups = models.ManyToManyField(Group)
>
> any suggestion?
>
> or how to
On Mon, Feb 9, 2009 at 11:36 PM, Atishay wrote:
>
> I just added admin related info in models.py
> The models however do not show up in django admin. I am using 1.0.2
> version currently. they were displaying properly in .97 version
>
> 31
> 32 def __str__(self):
> 33 return "name:
On Tue, Feb 10, 2009 at 12:14 AM, Margie wrote:
>
> I have a model that contains a 'created' field where 'editable' is set
> to False in the model.
>
> I'd like to display the created field in my form, but not allow it to
> be modified. I tried putting it in
> the include list for the form, but
On Tue, Feb 10, 2009 at 12:22 AM, seanbrant wrote:
>
> Sorry about my initial post, Im new here. I'll try harder next time ;)
>
> I choose MTI and added a entry_type field to the main Entry model.
>
> > ...(note that this could turn
> a Base.objects.all() query into O(n) queries).
>
> Is there a
On Tue, Feb 10, 2009 at 12:35 AM, Ramdas S wrote:
> I think in many practical cases, you may require permissions also to be
> tied in. I have a case where a form editing rights are tied to a some of
> the fields, ie employee cannot edit certain fields, while managers can edit
> the fields in a f
On Tue, Feb 10, 2009 at 6:41 AM, igorlash wrote:
>
> > If I have correctly interpreted you correctly, this was an
> > extraordinarily long-winded way to ask "Is there anywhere I can
> > download a PDF of the Django documentation, and if not, why not?"
>
> I've not asked "Is there anywhere I can
>
On Tue, Feb 10, 2009 at 3:24 PM, wynfred wrote:
>
> I'm sure there is a simple solution here, but I've been searching the
> forum archive and elsewhere but so far haven't found an answer.
>
> I have a form that uses some dynamic ModelChoiceField fields,
> filtering the model for the logged-in use
On Tue, Feb 10, 2009 at 4:07 PM, bkev wrote:
>
> Hello all,
>
> Is there a way to check whether a field contains a certain value in a
> ManyToManyField in the admin on a custom save method? For example, I
> have a model like:
>
> class LastName(models.Model):
>lastname = models.CharField(...)
On Tue, Feb 10, 2009 at 4:15 PM, Greg Ewing wrote:
>
> Russell Keith-Magee wrote:
>
> > No - we don't provide a PDF version of the documentation. This idea
> > has been proposed a few times in Django's history, but it has been
> > rejected in favour of providing the tools to let people build offli
On Tue, Feb 10, 2009 at 4:23 PM, Kevin Audleman wrote:
>
> Hi everyone,
>
> I've set up a model that has a state field with the input set to a
> list of states,
>
> state = models.CharField(max_length=100, blank=True,
> choices=US_STATE_LIST)
>
> The drop-down on the edit form works great, display
On Tue, Feb 10, 2009 at 4:48 PM, bkev wrote:
>
> Hmm...It is just a normal python string, but when I try 'Smith' in
> self.lastname, I get a "ManyRelatedManager is not iterable" error. Any
> ideas?
>
> Thanks again,
> -bkev
> >
>
Sorry I'm an idiot, I read lastname in the wrong place, what you'll
On Tue, Feb 10, 2009 at 4:52 PM, Greg Ewing wrote:
>
> Alex Gaynor wrote:
>
> > As I said above, a checkout of the django source includes all the docs,
> > which can be built into nice HTML just as online with the sphinx module
> > for python. It takes all of 30 second
On Tue, Feb 10, 2009 at 6:39 PM, Kevin Audleman wrote:
>
> Thanks Alex, however this is a solution at the View level, and I'm
> using a view that I didn't write. Is there also a way to do this at
> the template level?
>
> Thanks again,
> Kevin
>
> On Feb 10
On Wed, Feb 11, 2009 at 2:11 AM, Praveen wrote:
>
> lets assume all in lowercase
>
> expo/expoapp/models.py
>
>
> class events(models.Model):
>title = models.CharField(max_length = 50)
>summary = models.CharField(max_length = 100)
>description = models.CharFiel
ay a group can contain itself, this will be a
> loop.
> >
> > how to avoid this condition?
> >
> >
> >
> > On Tue, Feb 10, 2009 at 11:28 AM, Alex Gaynor
> wrote:
> >>
> >>
> >> On Mon, Feb 9, 2009 at 10:18 PM, khsing
On Wed, Feb 11, 2009 at 7:05 AM, rihad wrote:
>
> http://docs.djangoproject.com/en/dev/intro/tutorial03/#intro-tutorial03
> The "Decoupling the URLconfs" section in the end says that moving
> mysite/urls.py to mysite/polls/urls.py and making the necessary
> changes decouples the polls app complet
On Wed, Feb 11, 2009 at 8:01 AM, Bobby Roberts wrote:
>
> there shouldn't be really. The client has a search form and due to
> the way they want the search done there are about 40 option checkboxes
> for filtering in about 5 categories. It would have been easier if a
> filter with IN could have
On Wed, Feb 11, 2009 at 8:37 AM, Horst Gutmann wrote:
>
> This might sound slightly off-topic but I will say it anyway: No one
> forces you to use `make` for building the documentation. Once you've
> installed Sphinx, you also have `sphinx-build` on your $PATH::
>
> $ cd $djangofolder/docs
>
On Wed, Feb 11, 2009 at 10:58 AM, jimbocooper wrote:
>
> Hello! First of all, I'm Manu, from Zaragoza(Spain) and I'm developing
> several apps in Django, this is my first one and also my first post,
> now I get stuck and I need some help.
>
> I need to call in a server(Apache+mod_python) ever
On Wed, Feb 11, 2009 at 1:07 PM, Bfox wrote:
>
> I really like the admin pages. I want to figure out how to show the
> "list page" to all users (even when anonymous), but I don't want
> anonymous users to be able to edit the data (obviously). I looked at
> databrowse, but as far as I can tell,
On Wed, Feb 11, 2009 at 12:19 PM, Edgard Matos wrote:
> Anybody help me?
>
> On Wed, Feb 11, 2009 at 11:36 AM, Edgard Matos wrote:
>
>> Hi!
>>
>> I have a model with a DateField and I'm setting the input_formats
>> properties to "%d/%m/%Y":
>> birth_date = forms.DateField(input_formats=("%d/%m/%Y"
On Wed, Feb 11, 2009 at 12:20 PM, rg wrote:
>
> So I'm trying to install Django on a Linux server (I don't have root
> access) and when I run
> $ python setup.py install
>
> I get the following error:
>
> File "setup.py", line 48, in ?
>root_dir = os.path.dirname(__file__)
> NameError: name
On Wed, Feb 11, 2009 at 4:24 PM, KrcK wrote:
>
> Hi all,
>
> I'm new in this group and I have to say that my English is very poor
> so sorry.
>
> I've the follow problem, I want to put in one of my base templates
> (that it's include in main base template) a list of one model, for
> example a Cat
On Wed, Feb 11, 2009 at 6:05 PM, Tim Johnson wrote:
>
> I've installed django on my linux computer.
> I find documentation online at http://docs.djangoproject.com/
> I do not find documentation as part of the django install.
> Is documentation available for download?
> Thanks
> Tim
>
> >
>
Every
On Wed, Feb 11, 2009 at 6:30 PM, phoebebright wrote:
>
> I thought I had a custom widget which would allow images to be deleted
> working and was dead chuffed (http://groups.google.com/group/django-
> users/browse_thread/thread/ebf646208fa8880f/c22f87e85b5d78ef?
> lnk=gst&q=admin+image#c22f87e85b5
On Wed, Feb 11, 2009 at 6:59 PM, Tim Johnson wrote:
>
> On Wednesday 11 February 2009, Alex Gaynor wrote:
>
> > Every django tarball or svn checkout includes a docs/ dir that has the
> full
> > docs, you can build these into HTML, latex, pdf whatever using Sphinx.
>
the job:
>
> ...
> A9765/examples/hello/urls.py
> A9765/examples/views.py
> A9765/examples/__init__.py
> A9765/examples/settings.py
> A9765/examples/urls.py
> A9765/setup.cfg
> U 9765
> Checked out revision 9824.
>
> And dates are Feb 2
&
cal=False)
>
>
> On Wed, Feb 11, 2009 at 10:40 PM, Alex Gaynor
> wrote:
> >
> >
> > On Wed, Feb 11, 2009 at 2:29 AM, khsing wrote:
> >>
> >> class user(models.Model):
> >>username = models.CharField(max_length=50)
> >
t;
> Thanks.
>
>
>
> On Thu, Feb 12, 2009 at 10:08 AM, Alex Gaynor
> wrote:
> >
> >
> > On Wed, Feb 11, 2009 at 9:06 PM, khsing wrote:
> >>
> >> Alex, thank you very much.
> >>
> >> I find if g1 belong g2, g
On Wed, Feb 11, 2009 at 10:26 PM, rg wrote:
>
> 2.2.3.
>
>
> On Feb 11, 12:21 pm, Alex Gaynor wrote:
> > On Wed, Feb 11, 2009 at 12:20 PM, rg wrote:
> >
> > > So I'm trying to install Django on a Linux server (I don't have root
> > >
On Wed, Feb 11, 2009 at 11:11 PM, Will Hardy wrote:
>
> Hi all,
>
> Should the release tarball maybe contain pre-build html and pdf
> documentation?
> That might be handy for those who don't want to install sphinx/latex etc.
>
> Cheers,
>
> Will
>
> >
>
There was a fairly long thread about this j
On Thu, Feb 12, 2009 at 9:38 AM, Karen Tracey wrote:
> On Thu, Feb 12, 2009 at 8:02 AM, huw_at1 wrote:
>
>>
>> Hi all,
>>
>> I am trying to write a simple app that allows a user to select a file
>> (via the browse button) from which data can be read in and parsed. I
>> have read several examples
On Thu, Feb 12, 2009 at 3:07 PM, Michael Repucci wrote:
>
> I'm new to Django, and already loving it. But I'm stumbling a bit with
> how to accomplish the following task. Perhaps this isn't the best
> approach, but most of the site is working as planned, and it was super
> easy to get up and runni
On Thu, Feb 12, 2009 at 3:12 PM, Michael Repucci wrote:
>
> Oh. It doesn't mention that in the documentation. I am using 1.0.2-
> final. I'll check out formfield_for_dbfield. Thanks for the pointer!
>
> On Feb 12, 3:09 pm, Alex Gaynor wrote:
> > On Thu, Feb 12, 2
ny
> other thoughts?
>
> On Feb 12, 3:12 pm, Michael Repucci wrote:
> > Oh. It doesn't mention that in the documentation. I am using 1.0.2-
> > final. I'll check out formfield_for_dbfield. Thanks for the pointer!
> >
> > On Feb 12, 3:09 pm, Alex Gaynor w
On Thu, Feb 12, 2009 at 3:49 PM, Michael Repucci wrote:
>
> Oh, bummer. Is there a *not so good* way to do it in 1.0.2? It'd be
> nice to do it at all.
>
> Or is it perhaps not as scary as I think (as a newbie) to use the
> latest development version?
>
> On Feb 12
On Thu, Feb 12, 2009 at 4:39 PM, Chris Haynes wrote:
>
> I add (r'^admin/doc/', include('django.contrib.admindocs.urls')) to
> urls.py and get the admin page Documentation link, but when I visit it
> I get a 404 error with the message "The requested admin page does not
> exist.".
>
> When I visi
On Thu, Feb 12, 2009 at 4:49 PM, Chris Haynes wrote:
>
> The admin interface had no styling until I added a symlink in the fcgi
> directory from media (my ADMIN_MEDIA_PREFIX is /media/) to the admin
> app media directory. The development server works fine on another
> machine w/o such a link.
>
>
On Thu, Feb 12, 2009 at 4:56 PM, rskm1 wrote:
>
> > Also, what does 'fuzzy' mean in my .po file?
>
> I'm not an authority on the subject but have dealt with translations
> and .po files quite a bit.
>
> The term "fuzzy" in this context means it's not an EXACT match, but
> it's very similar; i.e.
On Thu, Feb 12, 2009 at 5:28 PM, arbi wrote:
>
> Hi all,
>
> I am trying to execute a javascript doc to display a google map. The
> javascript doc to refer to is "google-map.js". How do I write it in
> here ? :
> TEMPLATE :
>
> .
>
> I tryed many things and it did not work! I read many things, b
On Fri, Feb 13, 2009 at 12:29 AM, matt pokrzywa wrote:
>
> hello everyone,
>
> i'm planning to use django for a project in a security course i'm
> taking, and I have a question about leverage models:
>
> The models interface is really awesome, but for my project I can't
> have my frontend directly
On Fri, Feb 13, 2009 at 12:49 AM, matt pokrzywa wrote:
>
> Hi Alex,
>
> Thanks for the quick response. I think what I really want is the
> latter, using XML as a backend using Django ORM. Is it feasible to
> do?
>
> Thanks,
>
> Matt
>
> On Feb 13, 12:34 am,
On Fri, Feb 13, 2009 at 2:13 PM, Mike Ramirez wrote:
> This is the traceback for the error.
>
> http://dpaste.com/120271/
>
> This error happens whenever I return a List of QuerySets on this page with
> more than one item. With one item, it works as expected.
>
> The code is here:
>
> http://dpa
On Fri, Feb 13, 2009 at 2:41 PM, 3lancer.eu wrote:
>
> Thanks for all the help with 'fuzzies'. Any clues on translating
> foreign key fields in admin interface?
>
> Regards,
> Piotr
> >
>
A foreignkey can be marked for translation the same as any field, by
providing a verbose_name argument.
Alex
On Sat, Feb 14, 2009 at 2:28 PM, Rob Hudson wrote:
>
> Hi Django Users,
>
> I'm setting up a new Django model for a Newsletter app. The
> newsletter model has a many to many to a Book model that has about
> 20,000 records. This results in a multiple select box that is
> unusable for searching/s
On Sat, Feb 14, 2009 at 2:44 PM, Rob Hudson wrote:
>
> On Sat, Feb 14, 2009 at 11:29 AM, Alex Gaynor
> wrote:
> > Have you tried using raw_id_fields with it?
> > http://docs.djangoproject.com/en/dev/ref/contrib/admin/#raw-id-fields
>
> Just now tested that out. Tha
On Sat, Feb 14, 2009 at 4:15 PM, Jack Orenstein wrote:
>
> I'm trying to understand how Django 1.0 handles connections. This is
> from the django docs, on the subject of raw SQL:
>
> from django.db import connection
> cursor = connection.cursor()
> cursor.execute("select ...")
> r
On Sun, Feb 15, 2009 at 12:25 AM, Justin Myers wrote:
>
> On Feb 14, 12:55 am, Gour wrote:
> > Finally, I managed to add 'class Meta' as subclass of BlogPost class (as
> > above), but I wonder if adding 'ordering = ('-timestamp',)' to
> > BlogPostAdmin class is supposed to work or what is explan
On Sun, Feb 15, 2009 at 10:20 AM, Peter Herndon wrote:
>
> I don't have the URL handy, but the admin docs contain pointers on how
> to add extra URLs to your admin site. Create a view, make a template,
> add the URL, profit!! So if you want charts in your admin, such a
> task is well within the
On Sun, Feb 15, 2009 at 2:47 PM, nivhab wrote:
>
> Does anyone know of a way to traverse a list in templates in a dynamic
> way?
> Let's say I have the following list:
> {'message': [u'This field is required.'], 'sender': [u'Enter a valid e-
> mail address.']}
>
> and I do not know in advance the
ion. So it seems there is no way of doing such and iteration in
> this version. Only 1.0 or DEV versions.
>
> On Feb 15, 9:57 pm, Alex Gaynor wrote:
> > On Sun, Feb 15, 2009 at 2:47 PM, nivhab wrote:
> >
> > > Does anyone know of a way to traverse a list in temp
On Sun, Feb 15, 2009 at 5:09 PM, Gabor Nyers wrote:
>
> Hi all,
>
> I'm learning Django (and for that matter Python) for 2 weeks now and bumped
> into a problem I've been struggling with a
> few days. Apologies if it's obvious, but I've been looking at the Django
> documentation for 2 days now. I
1 - 100 of 828 matches
Mail list logo