Model Formsets Have an Extra Blank Form?

2009-07-24 Thread derek
I'm following the instructions here: http://docs.djangoproject.com/en/dev/topics/forms/modelforms/ But when I do this kind of thing: formset = AuthorFormSet(queryset=Author.objects.filter (name__startswith='O')) I always get an extra blank form at the end of my formset - regardless of how I

Re: how save data into more than one table?

2009-07-30 Thread derek
How about posting the code here for a review? On Jul 30, 5:21 pm, Asinox wrote: > Thanks, i did it, i dont know if in the best way but im saving data in > two tables :) thanks :) --~--~-~--~~~---~--~~ You received this message because you are

Re: dynamic form

2009-07-31 Thread derek
On Jul 31, 10:31 am, Salvatore Leone wrote: > Hi, > > I've got a form with various information and a file upload widget. > > Is there a way to uploads many files at the same time? So to have a link > "add file" (and even "remove" file for already selected files). >

Re: Scientific Data Frontend with Django

2009-08-04 Thread derek
cience" organisations (as opposed to proprietary research companies) that could help with such an effort. It's also clear that some thought will need to go into this "up front" in order to maximise reuse of code. My 2c Derek --~--~-~--~~~---~--~--

Re: multiple projects shared database

2009-08-06 Thread derek
y?! > > I think the idea is to allow common authorisation between the two sites. I am a complete newbie here, so pardon me chipping in, but... would it not be possible to do authorisation in one database and then have the groups-specific databases being separate? Derek --~--~-~--~~---

Re: how to deploy Django on the web server?

2009-08-11 Thread derek
On Aug 9, 7:49 pm, justin jools wrote: > o thanks for that :) > as soon as my administrator finally sorts out Python script executing for me > - omg! ,I'll try that Not sure if this is off-topic or not, but I see Google is also offering free Django deployment on

Uploading and using images in a database application

2009-11-03 Thread derek
photos/test.jpg I get a "Page not found: /media/photos/test.jpg" This seems like a simple thing to fix - but not for me? Any help to fix this is appreciated, as is any guidance on what will need to change once this project needs to run under Apache... Thanks Derek --~--~-~-

Re: Calling Database functions into Django Application.

2009-11-03 Thread derek
I have not used triggers/functions in Postgresql, but did find what may be a useful blog article: http://www.eflorenzano.com/blog/post/database-triggers-arent-evil-and-they-actually-kin/ On Nov 2, 3:28 pm, Geobase Isoscale wrote: > Hi all, > > Does anyone have an idea of

Display a view of a single record?

2009-11-05 Thread derek
One of the needs I have (and, I imagine, others too) is to be able to display a view of a single record in a table. This is the case when the record has many fields, not all of which are appropriate for (or need to be) display in the normal list view. What I need to know is: is this a

Re: Display a view of a single record?

2009-11-07 Thread derek
n...@pyconsultant.eu> wrote: > On 6 Lis, 07:55, derek <gamesb...@gmail.com> wrote: > > > One of the needs I have (and, I imagine, others too) is to be able to > > display a view of a single record in a table.  This is the case when > > the record has many fields, no

Re: Display a view of a single record?

2009-11-08 Thread derek
Well, the link to view a record would appear on each and every record line in the nomal tabular list. On Nov 8, 3:27 pm, joker <musluyuksekt...@gmail.com> wrote: > do u want to see last or first record? > > On 8 Kasım, 08:44, derek <gamesb...@gmail.com> wrote: > > &

Re: Display a view of a single record?

2009-11-10 Thread derek
Yes, the fields should not be editable in a "view". However, I do not see it as "a problem" - more as "a desirable feature". There are any number of use cases for letting users see detailed record data but not be able (or not need, at that point in time) to edit it. This feature is not meant

Re: Uploading and using images in a database application

2009-11-10 Thread derek
Bruno All the help is much appreciated - its working now, and I need to spend time to understand all the changes. On Nov 5, 5:53 pm, bruno desthuilliers <bruno.desthuilli...@gmail.com> wrote: > On 3 nov, 16:02, derek <gamesb...@gmail.com> wrote: > > > Given that I a

Re: Uploading and using images in a database application

2009-11-10 Thread derek
<bruno.desthuilli...@gmail.com> > wrote: > > > On 3 nov, 16:02, derek <gamesb...@gmail.com> wrote: > > > > Given that I am a "wet behind the ears" newbie, maybe I should not be > > > attempting this, but... > > > Attempts at thing w

Re: Display a view of a single record?

2009-11-11 Thread derek
Cool! Thanks Alex - that is exactly what I want. On Nov 10, 4:55 pm, Alex Robbins <alexander.j.robb...@gmail.com> wrote: > Derek, > > If you want something that display data but doesn't allow you to edit > it, you should check out the databrowse[1] contrib app. You just

Override length of CharField on admin form

2009-12-09 Thread derek
After much searching, the closest answer I can find for this is here: http://groups.google.com/group/django-users/browse_thread/thread/24edd54c637f19a7 with the "solution" being: text = forms.CharField(label="text", max_length=10, widget=forms.TextInput(

Re: Django Location- Does anyone know about this?

2012-02-16 Thread Derek
http://geodjango.org/ ? On Feb 15, 6:18 pm, coded kid wrote: > Hi Guys, Does anyone knows about any good django package for maps? or > for locating of areas, states, streets? Please kindly answer if you > do. Thanks. > > BTW: I've tried using Django easy_maps but it's not

Re: handling multiple parallel request

2012-02-20 Thread Derek
On Feb 20, 11:32 pm, "rafiee.nima" wrote: > tnx alot > but actually my scenario dose not deal with user so I thing cookies do > not help a lot > suppose there are 3 airline counter which fill ticket forms and send > them to the cashier maybe  simultaneously  .forms are sent

Re: Reports

2012-03-05 Thread Derek
community can benefit. Cheers Derek On Mar 5, 1:12 pm, Ahmed Toulan <thelinu...@gmail.com> wrote: > Hi, > > We have a Django website and we would like to have a reporting engine, if > it could be in python and integrated with Django it would be awesome. > > Here are

Re: Reports

2012-03-06 Thread Derek
I am curious as to why/how you use a reporting tool that does not support HTML for a web application? (PS I note that this tool, as in the case of Geraldo, also uses ReportLab) On Mar 5, 5:29 pm, Alexey Luchko wrote: > Hi! > > We are usinghttp://PythonReports.sf.net/. > > -- >

Re: overlay feature in django

2012-03-08 Thread Derek
I think you will need to define, or give an example, of what exactly you mean by "overlaying". On Mar 8, 12:55 pm, Bhujang Bhagas wrote: > Hi, > > Is there any feature for overlaying templates in django . > > Thanks.. -- You received this message because you are

Re: overlay feature in django

2012-03-12 Thread Derek
html template. > > Thanks.. > --- > ---- > > On Mar 9, 11:21 am, Derek <gamesb...@gmail.com> wrote: > > > > > > > > > I think you will need to define, or give an example, of what exactly > &g

Re: overlay feature in django

2012-03-12 Thread Derek
So much for the Zen of Python! :D On Mar 12, 9:21 am, kenneth gonsalves <law...@thenilgiris.com> wrote: > On Mon, 2012-03-12 at 00:14 -0700, Derek wrote: > > That is not an example or definition of "overlaying"; just a laundry > > list of templates. > > I

Re: Best approach for multiple sites in a single deployment?

2012-04-11 Thread Derek
That domain and page do not exist... On Apr 10, 4:42 pm, Mario Gudelj wrote: > Hey man, > > See if this > helpshttp://tidbids.posterous.com/saas-with-django-and-postgresql-schemas > > Cheers, > > -m > > On 10 April 2012 21:53, Bernardo wrote: > >

Variations on a table for different clients?

2012-04-11 Thread Derek
approaches or practices will help streamline work and prevent such variations from becoming a headache to maintain? (And yes, its likely to be more than one table that will require these variations). Thanks Derek -- You received this message because you are subscribed to the Google Groups

How to do form validation for inline formsets?

2012-04-18 Thread Derek
is wrong somewhere, but how do I go about fixing this? Thanks Derek Approach No.1 - NO validation # view file UploadFieldFormSet = inlineformset_factory(Upload, UploadField, max_num=None, extra

Re: Django - Worldwide Developer Rates - Hourly Income - location and project duration specific

2012-05-07 Thread Derek
I may have missed some key apect of this discussion, but isn't djangosite a tool fo show-casing websites; not a financial-statistics-gathering website? Is it not better to have one dedicated to this purpose; or perhaps extend http://www.djangojobs.org/ as this as least deals with

Re: django on jb ipad

2012-05-21 Thread Derek
I'm not an iPad user, but I see you can install Python from iTunes: http://itunes.apple.com/us/app/python-for-ios/id485729872?mt=8 (BTW, SQLite library and the pysqlite language binding are built into Python) I'm assuming you can then install and run normal Python modules (of which Django is

Re: Django graphical query interface?

2012-05-21 Thread Derek
I also have searched for such a beast in the past... The only one I have found recently that might be close is: http://plugins.jquery.com/project/SQL_QUERY_BUILDER (This site is down now - look at the archived view:

Re: DB joining 3 tables in django admin, while searching on the primary table

2012-05-22 Thread Derek
Please read this: https://code.djangoproject.com/wiki/UsingTheMailingList#Donts: before continuing to post these types of messages. On May 21, 3:30 pm, Aditya Sriram M wrote: > Some one there can answer!? > > > > > > On Sunday, 20 May 2012 13:12:17 UTC+5:30, Aditya

Re: How to use an optional ForeignKey to sites.Site and admin's "View on site"?

2012-05-30 Thread Derek
Actually, you can have a nullable ForeignKey (and there can be good reasons for this). This is mentioned in the docs themselves; see: https://docs.djangoproject.com/en/dev/ref/models/fields/#django.db.models.ForeignKey.on_delete I am not sure about the error that the OP is encountering. On May

Re: App inside another app or nesting in django apps

2012-06-01 Thread Derek
And the Zen of Python? "Flat is better than nested" On Jun 1, 8:10 am, Jani Tiainen wrote: > 31.5.2012 19:22, Kurtis Mullins kirjoitti: > > > Sure. They're just Python modules. All you need to do is: > > > 1. Include the files: __init__.py and models.py > > 2. Add the

Re: Understanding Django for PHP developer

2012-06-03 Thread Derek
Its more of an overview, but picks up on some key points: http://j4mie.github.com/python-and-django-for-php-refugees/#slide1 On Jun 3, 12:18 pm, mikegolf wrote: > Hi, > I've started to learn Django recently, however for last 5+ years I've > been developing using PHP

Re: Getting the last modified datetime from a DateTimeField

2012-06-07 Thread Derek
Please read: http://stackoverflow.com/questions/1737017/django-auto-now-and-auto-now-add On Jun 7, 8:14 am, Jesus Noland wrote: > Thank you for your reply. > > Ok so if I type out: > > m = Model.objects.get(id=1) > > then > > m.date > > Will give me the date and time of

Re: Import error

2012-06-25 Thread Derek
Emily If you are starting a new topic, please start a new thread - and again, as per the guidelines for using the mailing list that Cal referred to, the more specific your question, the more chance of getting a reply. :) On Friday, 22 June 2012 17:14:34 UTC+2, Emily N wrote: > > Kurtis, Adrian

Re: Handling millions of rows + large bulk processing (now 700+ mil rows)

2012-07-02 Thread Derek
Cal Can you please confirm which timezone these times are for (I assume UTC, but was not sure...) Thanks Derek On Sunday, 1 July 2012 17:09:05 UTC+2, Cal Leeming [Simplicity Media Ltd] wrote: > > Wow - glad to see there's people interested in this! > > Here is the schedule, co

Cause of a "Lock wait timeout error"?

2012-07-10 Thread Derek
at process or issue is actually causing the error? Thanks Derek -- 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 email to d

Re: Cause of a "Lock wait timeout error"?

2012-07-10 Thread Derek
Lee Bieber <wlfr...@ix.netcom.com> wrote: > On Tue, 10 Jul 2012 10:57:21 +0200, Derek <gamesb...@gmail.com> > declaimed the following in gmane.comp.python.django.user: > > > > > DatabaseError at /admin/app/model/1/delete/ > > (1205, 'Lock wait timeout exceede

Re: mysql warnings raise exception

2012-07-12 Thread Derek
George When issues with existing bugs get raised on this list. someone from "higher up" usually suggests you need to post on the developers list (apologies if you have already done; I do not subscribe to that list). Derek On Tuesday, 10 July 2012 19:10:54 UTC+2, George Lund wr

form.save() fails silently - how to debug?

2012-07-26 Thread Derek
this type of situation? Thanks Derek # models class ClientFile(Model): id = AutoField(primary_key=True) description = CharField(unique=True, max_length=255) file = FileField(upload_to='client', storage=CLIENT_STORAGE) class ClientData(Model): id = AutoField(primary_key=True)

Re: form.save() fails silently - how to debug?

2012-07-26 Thread Derek
think > >> results = formset.save(commit=False) >> formset.save() > > should be > >> results = formset.save(commit=False) >> results.save() > > > Tervitades/Regards > Karl Sutt > > > On Thu, Jul 26, 2012 at 10:35 AM, Derek wrote: > >&g

Re: form.save() fails silently - how to debug?

2012-07-27 Thread Derek
The clean() method basically stores the non-model field data in the model's dictionary field. If this method was faulty, then it would also cause problems in the test code. As I said, when I print the data to console it looks OK. I am still trying to find how and where the save() method

Re: form.save() fails silently - how to debug?

2012-07-27 Thread Derek
see. I have not used pdb before; I will need to look into how that works and how might help me. On Friday, 27 July 2012 14:00:37 UTC+2, Karen Tracey wrote: > > On Fri, Jul 27, 2012 at 3:25 AM, Derek wrote: > >> The clean() method basically stores the non-model field data in t

Re: Models: Referencing A Model In Another App and Different Project

2012-07-29 Thread Derek
As a general remark related to the issues that JJ has described... are there perhaps - or rather, should there be - pointers from the Django site that discuss some good practices to the overall approach of designing and building sites/projects/apps/databases - as opposed to the technical

Re: form.save() fails silently - how to debug?

2012-07-29 Thread Derek
is simply not saved. On Friday, 27 July 2012 15:46:01 UTC+2, Derek wrote: > > Thanks Karen > > I am not quite sure what you mean by "Model save() would indicate an > error" - I am making a call to the form.save(), which in turn, I assume, > should result in the d

Re: Read from an uploaded file and put data in a form for automatic Django validation

2012-07-29 Thread Derek
Have a look at: http://stackoverflow.com/questions/6091965/django-upload-a-file-and-read-its-content-to-populate-a-model On Sunday, 29 July 2012 04:43:15 UTC+2, forthfan wrote: > > Hi all, > > Being lazy, I want Django to validate the stuff I read from an uploaded > file as if it were being

Re: form.save() fails silently - how to debug?

2012-07-29 Thread Derek
as causing a "silent fail", but at least I can make progress now. Thanks to all who made suggestions. On Sunday, 29 July 2012 14:59:27 UTC+2, Derek wrote: > > Just to follow up... > > I have tried using pdb - but stepping into the Django code goes through > hundreds of line

Changing the text on the admin "change_list.html"

2012-09-08 Thread Derek
I need to alter the text that appears above every change list in my app: "Select *modelname* to change" However, I cannot see this text in the change_list.html file - whereabouts is this text kept, and can it be overridden? Thanks Derek -- You received this message because you are

Re: Request for comments - django-cutemodel (model logging and field change auditing)

2012-09-13 Thread Derek
think it will be a great alternative option for many folk. Cheers, Derek On Tuesday, 11 September 2012 21:11:06 UTC+2, Cal Leeming [Simplicity Media Ltd] wrote: > > Thanks for letting me know about django-reversion, it has made for > interesting reading. > > From what I can se

Re: Changing the text on the admin "change_list.html"

2012-09-13 Thread Derek
I see I was not specific enough. I do not want to change the model name; just the wrapper text that is used for *all* models. Thanks Derek On Tuesday, 11 September 2012 19:41:07 UTC+2, Melvyn Sopacua wrote: > > That would be the verbose name in the models' meta class. I think > Op 8

Re: Customizing the Django Admin Interface

2012-09-17 Thread Derek
n. Thanks Derek On Sunday, 16 September 2012 08:25:18 UTC+2, JJ Zolper wrote: > > Hello, > > I was able to locate the Django files for the admin under contrib in the > source. I was curious if I could get some tips about customizing the > interface. > > One website

Re: Customizing the Django Admin Interface

2012-09-18 Thread Derek
in the source code you had made them...) On Monday, 17 September 2012 23:00:21 UTC+2, JJ Zolper wrote: > > Derek, > > You can see the custom changes I made here: > > http://www.madtrak.com/admin > > That is the extent of what I have done in relation to the default. N

Re: Getting instance of current in django site admin

2012-09-25 Thread Derek
You have not supplied enough information to make this an answerable question. What is not happening that you expect should be happening? On Saturday, 22 September 2012 06:32:12 UTC+2, Krish wrote: > > I have following code in my admin.py > > class PackageForm(forms.ModelForm): > activity =

Re: Django 1.4 and google app engine

2012-09-25 Thread Derek
Then you should not be using GAE. From http://en.wikipedia.org/wiki/Google_App_Engine#Differences_between_SQL_and_GQL "Unlike a relational database the Datastore API is not relational in the SQL sense." On Saturday, 22 September 2012 23:00:50 UTC+2, neixetis wrote: > > Thank you ver much for

Re: Django from UML diagram

2012-11-28 Thread Derek
Google can help you! http://code.google.com/p/uml-to-django/ On Tuesday, 27 November 2012 11:44:19 UTC+2, Abbass Khalil wrote: > > Hello, > I'm a new to Django , and I'm looking for UML Tools that can generate > Django site from UML diagram. > -- You received this message because you are

Re: Model method versus overriding save()

2012-12-08 Thread Derek
Rather than use a trigger (which is DB-specific and also hard to debug because not part of your code base), suggest you use signals[1]. Derek [1] https://docs.djangoproject.com/en/dev/topics/signals/ On Saturday, 8 December 2012 04:27:50 UTC+2, Chris Cogdon wrote: > > It's a simple perfo

Re: Theming Django with Diazo/XSLT

2012-12-17 Thread Derek
as an example. Derek [1] https://django-grappelli.readthedocs.org/en/latest/index.html On Friday, 14 December 2012 23:55:31 UTC+2, 4 The good Life we work wrote: > > Hallo, > > I'm used to theme Plone with Diazo/ <http://www.diazo.org/>XSLT. > <http://www.diazo.org/&

manage.py collectstatic?

2012-12-28 Thread Derek
and why? Thanks Derek -- 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 email to django-users+unsubscr...@googlegroups.com. For mo

Re: Announcment - django-databrowse

2013-01-10 Thread Derek
I for one hope that django.contrib.auth is never "wiped off" and handed off to some random third party. I think that the framework would be much poorer for its loss and I'm happy to trade off for a "slower and dirtier" Django to be able to keep its presence. On Wednesday, 9 January 2013

Re: ANN: Portable Python 2.7.3.2 released

2013-01-14 Thread Derek
Thanks Perica The download links on the page you refer to all point to ".exe" files. Where are the installers for Linux-based systems? (Python is a cross-platform tool). Thanks Derek On Saturday, 12 January 2013 15:25:43 UTC+2, Perica Zivkovic wrote: > > Dear people,

Re: Field pre-load hook?

2013-01-14 Thread Derek
Maybe have a look at: * http://www.tylerlesmann.com/2008/dec/19/encrypting-database-data-django/ * https://github.com/svetlyak40wt/django-fields#readme On Sunday, 13 January 2013 22:00:24 UTC+2, Matt Barry wrote: > > Hi, > > I'm creating a model from an external database that has some encrypted

Re: What's the right pattern to re-use common view code?

2013-01-23 Thread Derek
If you'd read the Django Book (IMO, an essential "before you start with Django" read), you would have encountered the include tag in Chpt 4, the introduction to the templates: http://www.djangobook.com/en/2.0/chapter04.html On Tuesday, 22 January 2013 23:51:53 UTC+2, andrew jackson wrote: > >

Re: Announcing new django project

2013-02-04 Thread Derek
I agree - it looks great. What are the options for integration into the admin? It would be very useful for users to be able to edit single items in the change list. On Friday, 1 February 2013 16:17:39 UTC+2, h3 wrote: > > > Looks pretty cool, and maybe this is just my naivety at work, but how

Access to data via many-to-many while in save()

2013-02-06 Thread Derek
no data in the set... print len(Parent.objects.get(pk=obj.pk).m2m.all()) I know I am not grasping some key aspect of the problem; but I cannot see what it is, and would appreciate any help with this problem! Thanks Derek -- You received this message because you are subscribed to the Google

Re: django-quickview v0.1 released - proof-of-concept/comments wanted

2013-02-19 Thread Derek
When I try and access the site: https://bitbucket.org/weholt/django-quickview I get an error: You do not have access to this repository On Monday, 18 February 2013 21:58:14 UTC+2, Thomas Weholt wrote: > > Hi, > > I looked for django-announcements to post this in, but didn't find at >

Re: Survey : Theme for Django admin interface

2013-03-11 Thread Derek
On Monday, 11 March 2013 06:05:46 UTC+2, Venkatraman.S. wrote: > > > On Mon, Mar 11, 2013 at 3:49 AM, Emiliano Dalla Verde Marcozzi < > ed...@fedoraproject.org > wrote: > >> >> I was looking for this, but didnt find anything. i think it can have a >> great market, something like >> this web: >>

Re: [ANN] Introducing Brillixy - Django admin skin & customization kit

2013-03-14 Thread Derek
efer filters on the right where they are out the way (preferable hidden by javascript, actually); also the elements seem to be scattered on the page and maybe they need to be "grouped" somehow (not a designer, just saying what I see...) Derek -- You received this message becau

Re: Creating, retrieving, updating and deleting objects.(Queries??) HELP

2013-04-09 Thread Derek
/en/2.0/index.html very helpful when I was starting out. Of course, these days various authors have written commercial books, so if you have $$$ then look to those as well. When you have specific questions, post them here! Derek On Saturday, 6 April 2013 13:24:15 UTC+2, Giorgos Kontogiorgakis

Using Django and R in a production environment?

2013-04-22 Thread Derek
s of users doing high volume number crunching)? Thanks Derek PS Yes, we do need R and not one of the Python-based alternatives, as R offers many routines simply not available in those as yet (also, the client needs to re-use, and create new, R scripts themselves) -- You received this message b

Re: I have searched and searched for a CSV Importer that does the following.

2013-04-23 Thread Derek
slope for your application - my advice is to avoid if at all possible!! Derek PS Also have a look at : http://code.google.com/p/django-batchimport/ On Monday, 22 April 2013 16:47:33 UTC+2, sparky wrote: > > I have searched and searched for a CSV Importer that does the following... > *

Re: Using Django and R in a production environment?

2013-04-24 Thread Derek
and working. Perhaps there are less people in the sciences using Django than I thought... Derek On Tuesday, 23 April 2013 21:32:12 UTC+2, Per-Olof Åstrand wrote: > > I am not sure I understand your question, but is it really related to > using specifically R? Could it be any kind of hea

Re: Django Admin - BooleanField issue

2013-04-29 Thread Derek
Well, both Django and Python are consistent in their use of the terms "True" and "False" to represent boolean objects: https://docs.djangoproject.com/en/dev/ref/models/fields/#booleanfield http://docs.python.org/2/library/stdtypes.html#boolean-values In addition, the whole point of the ORM is

Re: Using Django and R in a production environment?

2013-04-29 Thread Derek
the route of using Celery or other job management tools makes > sense, especially if you can use R across multiple backend machines. > Would celery mean one rpy2 per celery? You don't really want all your > users using the same R session anyways. > > Thanks, > Alex > > On

Re: Using Django and R in a production environment?

2013-04-30 Thread Derek
own sphere, to create an application that is really useful for better and more efficient science. On 29 April 2013 16:59, Javier Guerra Giraldez <jav...@guerrag.com> wrote: > On Mon, Apr 29, 2013 at 2:13 AM, Derek <gamesb...@gmail.com> wrote: > > hat no one is actually usin

Re: Using Django and R in a production environment?

2013-04-30 Thread Derek
It's > based on Unix user accounts, so R processes run as if users were running > them on a desktop, except not. You may be able to share code in this > environment too, but I haven't played with it a ton. > > http://www.rstudio.com/ide/docs/server/getting_started > > -Nick

Re: Trailing zeros in DecimalField

2013-05-20 Thread Derek
Possibly related to localisation. See: https://groups.google.com/forum/?fromgroups#!topic/django-users/evJ7jg-YhdM https://docs.djangoproject.com/en/dev/topics/i18n/formatting/ On Sunday, 19 May 2013 01:37:22 UTC+2, Pedro J. Aramburu wrote: > > I've been reviewing the code of

Re: theme generator

2013-05-23 Thread Derek
Not sure it is being maintained, but may be a good starting point: http://www.djangoslingshot.com/ Also available is: https://github.com/ilblackdragon/django-themes On Tuesday, 21 May 2013 23:19:30 UTC+2, Kakar wrote: > > Hi! > Is there any kind of theme generator or css generator for django?

Re: Passing filter parameters to admin's add view

2013-05-27 Thread Derek
This may be a "red herring", but its also worth looking at how middleware handles things: http://www.b-list.org/weblog/2006/jun/13/how-django-processes-request/ On Saturday, 25 May 2013 17:53:00 UTC+2, Branko Majic wrote: > > Hello all, > > I've posted a similar question a couple of months ago,

Re: Django with Moodle

2013-05-28 Thread Derek
n a moodle database, but got Error C.) HTH Derek On Monday, 27 May 2013 15:48:13 UTC+2, Sourabh Banerjee wrote: > > I have moodle version 2.5.But its based on PHP. > So how to integrate Django with moodle.Need help. > -- You received this message because you are subscribed to the Goo

Re: how to import excel file into django models?

2013-06-03 Thread Derek
to specific fields. There is a ton of example code for xlrd on the web, and some with examples for Django. My code works with forms that let the user specify which columns are being used for what, rather than a command-line approach. How you handle this aspect depends on your use case... Derek

Re: saving latitude and longitude values in django

2013-06-05 Thread Derek
Your question seems to be more about using javascript with Django; have a look at this Q: http://stackoverflow.com/questions/5735107/basic-django-and-javascript-question There is also a lonk to a downloadable sample app. The "getting the values from the map via javascript" is a different kind of

Re: saving latitude and longitude values in django

2013-06-05 Thread Derek
code) On Wednesday, 5 June 2013 09:37:21 UTC+2, Derek wrote: > > Your question seems to be more about using javascript with Django; have a > look at this Q: > > http://stackoverflow.com/questions/5735107/basic-django-and-javascript-question > There is also a lonk to a downl

Using django-autocomplete-light?

2013-06-10 Thread Derek
by an empty edit box, but beyond that there is no list displaying when I start typing... I'd appreciate any ideas as to how to get this basic example working. Thanks Derek # models.py class Country(Model): id = AutoField(primary_key=True) code = CharField(unique=True, max_length=5) name

Re: Running a script through Django admin interface button/url

2013-06-11 Thread Derek
Hi Giorgos What you need to do is pick the appropriate admin template to customize, and add in your link (or link+button image) there. See: https://docs.djangoproject.com/en/dev/ref/contrib/admin/#overriding-vs-replacing-an-admin-template The web is littered with examples of how to do this...

Re: export .csv file from database

2013-06-19 Thread Derek
>From just a quick glance, I have probably missed complex here - but one option to try is changing the delimiter from a comma to another character (e.g. a semi-colon) - see: http://docs.python.org/2/library/csv.html#dialects-and-formatting-parameters (But its also possible that in all the

Re: Problem when creating a form for adding users to groups

2013-06-19 Thread Derek
I think the problem is that you are using queries which are in the form: (id = some_list_of_items) and you cannot do that. Have a look at the "_in" syntax: https://docs.djangoproject.com/en/dev/ref/models/querysets/#in (That whole document is very useful one to read and understand; as making

Re: Installing/implementing a Python-based API on my website

2013-06-21 Thread Derek
CND Your question seems obscure - what exactly do you mean " implementing it on a site"? If you have Django up-and-running (and I assume you do, because why else would you be here?), then the specialised code you write can be added to a file (e.g. "mycode.py") and saved, for example, in the

Re: change buttons or widgets

2013-07-08 Thread Derek
Widgets: https://docs.djangoproject.com/en/dev/ref/forms/widgets/ For changing the way buttons look; try Twitter Bootstrap: http://twitter.github.io/bootstrap/components.html -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from

Re: django graphics

2013-07-10 Thread Derek
Good advice about using forms to capture the plot parameters - be aware that you do not need to save anything to disk (unless you want/need to). There's an example here of creating one and returning it directly via the response: http://wiki.scipy.org/Cookbook/Matplotlib/Django On Tuesday, 9

Re: What is Django?

2011-08-24 Thread Derek
http://www.djangobook.com/en/2.0/chapter01/ discusses what a web framework is, and why/how it might offer you more productivity just using "raw" Python (bearing in mind that most of the time, apart from the HTML templates, you *will* be using Python anyway). You cannot "see" a sample app because

Re: DjangoCon US 2011 Videos

2011-09-21 Thread Derek
+2 On Sep 21, 3:10 pm, "Cal Leeming [Simplicity Media Ltd]" wrote: > +1 > > On Wed, Sep 21, 2011 at 2:09 PM, Slafs wrote: > > I would be interested also in watching those videos > > > Regards > > >  -- > > You received this message

Re: Helping someone move from Joomla to Django

2011-09-29 Thread Derek
lows. Working with him allows you to easily answer all the small issues that always pop-up when trying to learn an unfamiliar tool/system, and helps ensure that these are not road-blocks on the path to "enlightenment". My 2c! Derek -- You received this message because you are subscribed t

Re: Module or plugin architecture

2011-10-01 Thread Derek
iddleware/ One example of a project that does this is Merengue - see: http://docs.merengueproject.org/intro/overview.html#a-pluggable-architecture Derek -- 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@g

Re: sprintf in python (not strictly django, but used all the time in django webapps)

2011-10-25 Thread Derek
Those can be a bit dry... for some variety, you could also try Doug Hellman's excellent "Module of the Week": http://www.doughellmann.com/PyMOTW/ On Oct 24, 4:11 pm, "Cal Leeming [Simplicity Media Ltd]" wrote: > You're correct :L > > Thanks for this - I

Re: project architecture question

2011-11-14 Thread Derek
On Nov 14, 2:44 pm, "Sells, Fred" wrote: > I build healthcare applications and the gov't regs require we log most > user access to patient info. > > Since I've only built one (rather large) Django app, my logging is in > the same DB as my data and I use decorators in

Re: To make a basecamp like - project management site

2011-11-15 Thread Derek
This looks like spam. On Nov 15, 11:16 am, Anand wrote: > Hi Michael > > You can try BootStrapToday (http://bootstraptoday.com). Its based on python > and django. > > Regards > Anand -- You received this message because you are subscribed to the Google Groups "Django

Re: Date_Field min_value

2011-11-17 Thread Derek
Michael Please don't an existing thread and change the topic; start a new discussion of your own. For more on mailing list etiquette, please read: https://code.djangoproject.com/wiki/UsingTheMailingList On Nov 17, 6:17 am, Michael Nacharov wrote: > Hello Django

Re: django tutorial versions

2011-11-22 Thread Derek
This seems to keep happening. It would be incredibly helpful if the Django webpages could add the version number (or dev reference) in dark, bold lettering in the light green toolbar (right near the top of the page, next to the words "Django documentation)! On Nov 21, 9:18 pm, Jesse Aldridge

Re: slow function

2011-12-06 Thread Derek
On Dec 5, 12:18 pm, Håkon Erichsen wrote: > 2011/12/5 kenneth gonsalves > > > That seems to be the biggest problem you have. Some other comments: > > - Holy mother of god, that's a huge view file! I would advice to slice > it into logically

Re: Conditional choice fields for model specification...

2011-12-06 Thread Derek
er. Your model definition would contain all the possible choices and you'd filter these to the user accordingly. There have been many many posts to this list (as well as many blog entries) all detailing possible routes you can take. HTH Derek -- You received this message because you are subscribe

  1   2   3   4   5   6   7   8   9   10   >