On Jul 22, 11:17 pm, knicholes wrote:
> Hey,
>
> I used the admin to display a manytomany field (that had over 60,000
> entries) and used raw_id_field = ('hugeDatabaseField'). This took
> care of the problem, but I wanted to be able to sort my manytomany
> field, so I added an intermediary cla
On Jul 21, 9:10 am, Philippe Josse wrote:
> Hi there,
>
> I would like to have your feedback on the way I am running daemon scripts
> for my Django/ Python app. I know this is definitely not the "one best way",
> but this is a solution I came up with that seemed simple to implement. (I am
> a r
> Lets say I have two models Street and House, related by a foreign key
> thus:
>
> class House(models.Model):
> house_number = models.CharField(max_length=16)
> street = models.ForeignKey(Street)
>
> In the admin area, the Change House page displays a list widget by
> which to select the
On Jul 10, 11:06 am, adelaide_mike
wrote:
> I suspect this is a question more for a PostgreSQL list, but please
> bear with me.
>
> In Django 1.0.2 working with PostgreSQL 8.3 I have a model with an
> implied pkey. PostgreSQL syas this:
>
> CREATE TABLE wha_property
> (
> id serial NOT NULL,
On Jul 10, 8:39 am, bruno wrote:
> Hi,
>
> I'm new in django and I have problem with importing models
>
> I have two class : Job and Event
>
> The Job class defines a method run_job() wich do something and log the
> result by creating a new Event so I need to import the Event class
> from file
On Jul 9, 4:29 pm, Wiiboy wrote:
> Hi,
> On the homepage of my website, I have three columns of articles from
> users. I can't quite figure out how to make those three columns
> without violating DRY. Now, I have a dictionary of lists, with each
> list being the list of articles for one column
On Jul 8, 3:18 pm, Dave E wrote:
> I've just removed my old Django 1.0 dir to install 1.1 (as per the
> instructions on the Django
> site):http://docs.djangoproject.com/en/dev/topics/install/#removing-old-ver...
>
> But this leaves django-admin.py under (on Mac OS 10.4.11):
> /Library/Framewor
On Jul 4, 9:28 pm, TechnicalBard wrote:
> But the admin app does - it defines the labels from the attribute
> names and just puts them all in a table or list.
>
> How does one do that?
Actually, you tell it which fields you want to display through the
list_display attribute on your Admin class
On Jul 4, 6:30 pm, TechnicalBard wrote:
> Is there a way to pass an object to the template and have the template
> handle all of the attributes without hardcoding them into the
> template?
Depends on what you mean by "handle". The template won't by itself
know the markup with which you want to
On Jul 3, 9:17 am, Nikola Pavlović wrote:
> Hello people,
>
> I'm writing my first Django application and would like to know what is
> considered more efficient: getting values of models' attributes in views
> or directly in templates?
>
> More precicely, say we have a Person model with name an
On Jul 3, 8:57 am, 1angrycats
wrote:
> Great suggestion Rajesh.
>
> I've shifted everything into a custom context processor and
> everythign's runnign well, with the view showing and emailing from any
> page, however there's a final step I'm looking to resolve: returning
> the HttpResponseR
On Jul 2, 11:03 am, Matt wrote:
> Hi all,
>
> I've started to use the django-rest-interface to build an API for a
> service that I'm working on. Principally all that's required is for a
> client to be able to create and update objects remotely via POST and
> PUT, but as this is the first REST i
On Jul 2, 12:35 pm, 1angrycats
wrote:
> Hi everyone, long time lurker, first time botherer.
>
> I hope someone here can help me out (& possibly a few other Django
> n00bs in the future too).
>
> I've dug around as best I can but can't find a - probably simple -
> solution to an issue I'm ha
On Jul 2, 12:18 pm, mettwoch wrote:
> Hi,
>
> I write a POS application and several users share the same terminal.
> They use a barcode scanner to point to their badge to login (works
> already). I'd like to keep the session data for every user so that
> when user A leaves the terminal and user
On Jul 1, 4:35 pm, Daniel Roseman wrote:
> On Jul 1, 8:59 pm, Rajesh D wrote:
>
>
>
>
>
> > On Jul 1, 9:50 am, Mathieu Leplatre wrote:
> > > On 1 juil, 14:44, coan wrote:
>
> > > > I have a friendship model for users and want t
>
> > This is an issue which, I believe, is related to Ticket #10788
> > (http://code.djangoproject.com/ticket/10788).
>
> > The following code snippet used to work with Django 1.0.2, but with
> > the latest svn version the slug is not being set to the filename
> > produced by get_path because, as
On Jul 1, 9:50 am, Mathieu Leplatre wrote:
> On 1 juil, 14:44, coan wrote:
>
>
>
>
>
> > I have a friendship model for users and want to retrieve all the posts
> > my friends made.
>
> > class Friendship(models.Model):
> > from_friend = models.ForeignKey( User, related_name='friend_set' )
> >
On Jul 1, 8:30 am, David De La Harpe Golden
wrote:
> Hi,
>
> As far as I can see, django shouldn't care in the slightest about
> template file name extensions, but being a django newbie, I could have
> missed something (e.g. autosetting of a mime type somewhere based on
> extension), so just to
On Jul 1, 12:10 pm, mettwoch wrote:
> Hi group,
>
> What would be a good way to log changes made to models from outside
> the admin interface?
Look at the log_* methods in the Admin implementation:
http://code.djangoproject.com/browser/django/trunk/django/contrib/admin/options.py#L377
You cou
On Jun 29, 11:05 am, BarakatX2 wrote:
> I have a form that allows a dynamic number of files to be uploaded. On
> the Django side, if I print the request.FILES it is described as:
>
> png)>, ,
> ]}>
>
> But when I try to access the files like this:
>
> for f in files['rqFiles']:
>
> Then f is a
On Jun 26, 11:35 am, pihentagy wrote:
> Hi!
>
> I am developing a django app, which will be installed at multiple
> places with different configuration.
>
> It has some models, and list views.
>
> I store in a config dict the fields/methods to be displayed, and I'd
> like to offer sorting (auto
On Jun 26, 7:17 am, Kenneth Gonsalves wrote:
> hi,
>
> I have a conference management application. It has a list of menu items on the
> lefthand side. These menus are created by a templatetag from a list of menus
> in views.py. At various stages of the conference, menu items have to be
> enable
On Jun 26, 7:33 am, Shuge Lee wrote:
> models.pyhttp://gpaste.com/p/3747b
>
> admin.pyhttp://gpaste.com/p/3d432
If you need to have custom code when a model is saved through the
admin, you should override the save_model method in your Admin class.
See this doc:
http://docs.djangoproject.com/e
On Jun 25, 10:49 pm, Wiiboy wrote:
> Question: how often should I have a cron job work to send emails?
Depends on the volume of emails and the frequency with which new
articles are submitted to your site. Just try a frequency of say every
10 minutes and adjust it up or down when you have rea
On Jun 26, 1:16 am, koranthala wrote:
> On Jun 26, 2:21 am, Kevin Teague wrote:
>
> > Presumably you already have all of the data required to generate a
> > chart on the server? If so, then store the chart data in a model, and
> > just reference it by id. e.g.
>
> >
>
> > (or w/ a pretty URL:
On Jun 25, 4:43 pm, delino wrote:
> Hi,
>
> I have a simple scenario using Django 0.96 and am looking for a
> cleaner solution than what I currently have:
>
> I want to include a simple submission form (a few simple fields) on
> most pages of my site. I have the form action set to '.' so that
>
On Jun 25, 9:43 am, koranthala wrote:
> Hi,
> I have a chart which I generate on the fly.
> Basically, I have hard linked an image. The image src contains GET
> parameters, which is used to generate the chart image via matplotlib.
> The resultant image is returned back as 'Content-Type'
On Jun 25, 9:51 am, nabucosound wrote:
> Hi all:
>
> I am refactoring a django app to make it reusable and share it open
> sourced to the world. There is a lot code which I think it is optional
> and maybe not everybody will want to use, like some model fields, url
> patterns of view functions.
On Jun 25, 12:54 am, Wiiboy wrote:
> I'm a bit of a noob at Web Devlopment (as you already know if you've
> read any of my posts on here).
>
> I've read that using hooks in key places in a website can help ease
> future development. Can/Should Django's signals be used for that
> purpose?
>
> I
On Jun 25, 12:52 pm, Andrew Fong wrote:
> Question: When is it necessary to escape a forward slash? I'm dealing
> with these two situations in my templates -- assume the next context
> variable is a URL of some sort.
>
>
>
> http://en.wikipedia.org/wiki/URL_encoding#Percent-encoding_reserved_c
On Jun 19, 4:14 pm, notcourage wrote:
> I for one would be interested in replies showcasing django battery
> projects underway. As a new django user, I'm stumbling on some active,
> useful projects (django piston, south) and wondering if there are
> projects addressing my wish list (django mode
On Jun 19, 4:10 pm, notcourage wrote:
> http://www.djangosites.org/
> is missing info like load, scaling techniques used, utilities written
> (e.g., custom tags, custom form fields, custom model fields, wish
> list. I don't see how one adds a site.
Create an account there and login to see the
>
>
> > On Jun 17, 7:41 am, pagetribe wrote:
>
> > > Hi,
>
> > > I have been creating a gallery, which has albums. I would like to
> > > restrict the albums, say album1 to a set of users, say userA and userB
> > > and album2 to userC. So userA & userB cannot view album2 and userC
> > > cannot v
On Jun 17, 2:06 pm, blaine wrote:
> Hey guys,
> I have a lot of data from various testing samples (simple 2D
> plotting points) in .csv format. I am looking to design a system to
> manage things like plotting, calculations, selecting individual
> samples and tests, etc. by creating a data ma
Hi Josh,
On Jun 17, 10:25 am, Joshua Russo wrote:
> Is there a generally accepted workaround for the problem of sorting
> relational models by more than one field? I have a model that
> represents recurring payments between a person and an object and it
> would be really nice to order by the obj
On Jun 17, 7:41 am, pagetribe wrote:
> Hi,
>
> I have been creating a gallery, which has albums. I would like to
> restrict the albums, say album1 to a set of users, say userA and userB
> and album2 to userC. So userA & userB cannot view album2 and userC
> cannot view album1.
>
> From the docum
On Jun 11, 6:29 pm, ringemup wrote:
> With I18n disabled, I'm getting what looks like a circular import
> error from one of my apps, but with it enabled, the error goes away.
> None of my modules is (to my knowledge) using any I18N features. Any
> clues what might be going on?
Include a trace
On Jun 12, 12:51 am, gganesh wrote:
> hi,
> My app connects to Facebook and as user logins in with facebook
> connect ,i intent to display users friends list .I the process of
> doing so i have written a code as pasted below
>
>
> script>
>
>