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: django templates

2013-07-17 Thread Derek
One option is to use a Django admin action - the user selects which job/jobs are needed from the usual list - and your action can then generate the data, passing this into a single "master template" (composite of your other templates) for the user to print (or you could have an action just to g

Re: create random string for username

2013-07-22 Thread Derek
, your web app ends up being a huge mish-mash of code and data and HTML ... like "old skool" PHP. Easy to start off, but a nightmare to maintain as it gets more complex. Derek On Saturday, 20 July 2013 17:17:06 UTC+2, Randy Baxley wrote: > > The Django tutorial is not quite ma

Re: Learning how to build a web site for my python games and a blog

2013-07-30 Thread Derek
Best off to post questions here than splitting off into another forum. Sensible questions will generally get answers! On Saturday, 27 July 2013 15:57:45 UTC+2, Randy Baxley wrote: > > Is anyone working through The Django Book that would like to form a fb > page just for that or knows of a good

Re: how do beginner can...begin

2013-08-26 Thread Derek
I have not done this myself; but I see Heroku provide a quite detailed guide to setting up a Django project in their environment: https://devcenter.heroku.com/articles/django Maybe try this, and contact their support if it fails... On Monday, 26 August 2013 11:05:10 UTC+2, Renato Pontefice wro

Re: Geodjango and Kriging

2013-09-09 Thread Derek
As Stefano said - "not really". GeoDjango is more designed around data storage and display, and not processing. There is an interesting discussion here: https://groups.google.com/forum/#!topic/scipy-user/3wrplHcl9YY and a potential library here: http://hpgl.aoizora.org/ Derek On S

Testing in Django - newbie questions on first test failure and coverage

2013-09-15 Thread Derek
red` ... Currently I am using `coverage html' - but how I get it work properly? Any help getting started overcoming these issues will be helpful, so I can get on with the actual business of writing tests. (As a side-note, if there is a good existing code base, for a Django-based project, t

Re: Testing in Django - newbie questions on first test failure and coverage

2013-09-21 Thread Derek
right down (we have a lot of fixtures we need for our database). if you can suggest another or better way to load our fixtures just once for a whole class of tests, I'd appreciate hearing about that. Thanks Derek On Monday, 16 September 2013 23:20:41 UTC+2, Rafael Durán Castañeda wrote: &g

Re: Testing in Django - newbie questions on first test failure and coverage

2013-09-23 Thread Derek
have more confidence with further tests, I will also try out factory_boy for other, non-fixture, data I need to test. Thanks again for all the help here. Derek On Sunday, 22 September 2013 12:40:16 UTC+2, Rafael Durán Castañeda wrote: > > Hi, > > > El 21/09/2013, a las 1

Re: Testing in Django - newbie questions on first test failure and coverage

2013-09-23 Thread Derek
have more confidence with further tests, I will also try with factoryboy for other, non-fixture, data I need to test. Thanks again for all the help here. Derek On Sunday, 15 September 2013 15:37:35 UTC+2, Derek wrote: > > I have an existing Django (1.4) project, with multiple apps and exten

IntegrityError with proxy model but not with parent?

2013-09-25 Thread Derek
Ldb/cursors.py" in execute 174. self.errorhandler(self, exc, value) File "/usr/lib/python2.7/dist-packages/MySQLdb/connections.py" in defaulterrorhandler 36. raise errorclass, errorvalue (FTR, I have also tried overriding the model save(), but again get an Integri

Re: Using unique_together with foreign key fields which may be None

2013-10-01 Thread Derek
We encountered the same problem for a complex model ... we ended up defining "acceptable" default values that are used instead of None/NULL, but essentially mean the same thing to the user. (We are using MySQL which adopts the same approach as Postgresql - I believe Oracle does it otherwise).

Re: automated unit test generation

2013-10-02 Thread Derek
quot;; but that will not be possible as we are running behind a firewall. Thanks Derek PS Maybe on your site you need to quote Jacob: 'Code without tests is broken as designed'. On Wednesday, 2 October 2013 14:59:55 UTC+2, skunkwerk wrote: > > Hi, >I've been working

Tutorial for django-select2?

2013-10-06 Thread Derek
knows of a step-by-step guide/tutorial that will enable one to use this app in a project. Thanks, Derek -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to dj

Bug in admin models?

2013-10-23 Thread Derek
I am trying to add a model entry, via the admin; I get this error (which has not happened before), running Django on Ubuntu 12.04 with the test server. Not sure if there is an error with the model (which has worked fine up to now) or ...? Request Method: POST Request URL: http://127.0.0.1:8000/a

Re: Bug in admin models?

2013-10-24 Thread Derek
Yes, its there - the line after 'suit'. On Wednesday, 23 October 2013 19:22:54 UTC+2, Odin wrote: > > Can't see the django.contrib.admin in INSTALLED_APPS. > > > 2013/10/23 Derek > > >> I am trying to add a model entry, via the admin; I get this error (w

Re: Bug in admin models?

2013-10-25 Thread Derek
the end quote)? > > > Cheers, Nigel > 07914 740972 > > > > On 24 October 2013 14:20, Derek > wrote: > >> Yes, its there - the line after 'suit'. >> >> >> On Wednesday, 23 October 2013 19:22:54 UTC+2, Odin wrote: >> >>&g

Re: Seeking reviewers for a "Guide to Idiomatic Django Deployment"

2013-11-06 Thread Derek
I agree there is a huge amount to learn in development... but deployment to a Real Live Server is not trivial; I have read two different (and each fairly detailed) guides so far, and still cannot get things working... for me, a really good guide would also include "trouble-shooting" - along th

Django Admin Error: pop-up entry form

2013-11-19 Thread Derek
Hi I am using Django 1.5.5. This error happens while running the dev server. If I click on the "+" button so I can use the pop-up form to add a new entry to a drop-down list (i.e. FK to another model), I get the following error trace when trying to save that form. File "/home/der

Re: Is it possible to output a graph from Matplotlib into Django like this?

2011-04-14 Thread Derek
On Apr 14, 5:48 am, nai wrote: > Thanks for your help. > > I went with 2 views, 1 for the image and 1 for the html. > > On Apr 12, 2:06 pm, Sam Walters wrote: > > I mis-read this... basically you have one view and in the template you > > are rendering you put HTML: > > > > > > > > so that path

Re: limit_choices_to (or some other way) to filter ForeignKey choices based on current model field

2011-04-19 Thread Derek
On Apr 16, 7:29 pm, Aljoša Mohorović wrote: > if i have something like this: > === > class MyModel(models.Model): >     name  = models.CharField(max_length=255) > > class OtherModel(models.Model): >     name  = models.CharField(max_length=255) >     mymodel = models.ForeignKey(MyModel) > > cla

Re: Custom form field

2011-04-22 Thread Derek
On Apr 20, 5:06 pm, Daniel Gagnon wrote: "The first one uses a jquery plugin that's discontinued and the second one works only in the admin." But that first project is live; did you contact the author and ask him/ her about plans to update it (especially as the jquery plugin in question has a cl

Form redisplay in the case of form errors?

2011-04-26 Thread Derek
edisplayed? Thanks Derek # form class PersonForm(ModelForm): class Meta: model = Person fields = ( 'first_name', 'last_name', 'date_of_birth', 'gender', 'email', 'cellphone', 'area',

Re: Form redisplay in the case of form errors?

2011-04-27 Thread Derek
On Apr 26, 11:57 am, Daniel Roseman wrote: > On Tuesday, April 26, 2011 10:37:50 AM UTC+1, Derek wrote: > > > I have a form that I am expecting will redisplay with errors; it does not > > do so.  Instead, the "print form.errors" statement is reached which does, in &

Re: Extremely Frustrated

2011-04-28 Thread Derek
On Apr 25, 3:53 pm, Gandeida wrote: > Hello, > > I am running version 1.3. > > After copying and pasting about 20 more times, but getting the error > sporadically, I have found that the issue was the tab characters that > were being automatically generated to keep my indentation level.  I've > cha

Re: URLs in error messages from form validation

2011-04-28 Thread Derek
On Apr 28, 12:33 pm, Tom Evans wrote: > On Mon, Apr 25, 2011 at 11:40 PM, Daniel Gerzo wrote: > > PS: I'm just wondering where did you find this? I was looking around the > > documentation and was unable to get any trace of such a function... > > http://docs.djangoproject.com/en/1.3/ref/utils/#mo

Re: how to use jquery for point of Sale

2011-05-07 Thread Derek
On May 7, 3:42 pm, GKR wrote: > thanks If, as you say, you want to work with a table and input text, and add the item onto the table (I assume dynamically), then you'll need to understand: (a) how to work with Django form - see: http://docs.djangoproject.com/en/dev/intro/tutorial04/?from=ol

Re: File Field

2011-05-16 Thread Derek
On May 13, 1:44 am, pankaj sharma wrote: > Hello friends,. > i want to upload some files to my database and show it to user .. > how to add an filefield option to models.py and how to show them in > admin.py. > and how to let the users download the files... Suggest you start with the docs: http://

Re: boolean default

2011-05-17 Thread Derek
On May 15, 8:53 pm, Christophe Pettus wrote: > On May 15, 2011, at 2:15 PM, Greg Donald wrote: > > > How do I set a default for a BooleanField() ? > > > I tried > > > foo = models.BooleanField( default=False ) > > > but that only produces > > > foo boolean NOT NULL, > > The default= parameter in D

Re: Static files

2011-05-19 Thread Derek
On May 18, 10:03 pm, Kevin Monceaux wrote: > John, > > On Wed, May 18, 2011 at 09:12:59AM -0700, John Wheeler wrote: > > I had to change > > >    return render_to_response('index.html', {'form': form}) > > > to > > >    return render_to_response('index.html', {'form': form}, > > context_instance=R

Re: Is there an HTML editor that's Django-aware

2011-05-22 Thread Derek
On May 20, 8:58 pm, Shawn Milochik wrote: > +1 on Komodo Edit (I use the free one for almost all of my coding). > > I don't know exactly to what extent it handles Django template tags in > HTML, but it's never tripped me up, which is something, anyway. > > Shawn Another +1 for the free Komodo Edi

Re: forum and blog for developers

2011-05-23 Thread Derek
On May 22, 7:02 pm, Paul Menzel wrote: > Am Sonntag, den 22.05.2011, 11:53 -0500 schrieb Jacob Kaplan-Moss: > > > I think you're looking forhttp://www.djangoproject.com/community/. > > Perfect. I did not know about this. I am sorry for the noise. Yeah - there is actually a ton of "stuff" (aka res

Re: Form Validation - Redisplay With Error

2011-05-27 Thread Derek
On May 26, 1:07 am, Robin wrote: > I'm very comfortable with SQL and more traditional programming.  Would > you recommend some specific HTTP primer, or anything  else for those > making the transition to web dev? > Assuming good faith in the wisdom of the crowd... : http://en.wikipedia.org/wiki/Ht

Re: Regarding Django Applicaiton

2011-05-29 Thread Derek
commercial options out there, but you may be able to access a demo database that will be usable by you as a student - for example, have a look at: http://www.iplocation.net/#geolocation HTH Derek -- You received this message because you are subscribed to the Google Groups "Django users&quo

Re: Learning Django: Approach / Advice / Resources

2011-05-31 Thread Derek
7;t much available a bad sign? A: Depends if you think the publishing industry is keeping up with the web programming industry ;) I think you'll have to get one of the committers to answer that; but to be honest I would rather they fixed bugs and added features than wrote books (my 2c). In the m

Re: Passing parameters to form class

2011-06-01 Thread Derek
On Jun 1, 11:39 am, skyde wrote: > Thank you very much! I had not realised the self.fields['vaihtoehdot'] > part! > > Best regards, > skyde For what it's worth (as this question comes up from time to time and, occasionally, people actually search in the archives before asking again...), I'll add

Re: Passing parameters to form class

2011-06-01 Thread Derek
ost of my issues stem of poor understanding of python and not > directly related to django. > This is what you get from trying to understand django with limited > knowledge of python. > Why I haven't had the time to study python is another matter > alltogether... > >

Re: Is there an HTML editor that's Django-aware

2011-06-02 Thread Derek
On May 31, 3:26 pm, Tom Evans wrote: > On Mon, May 30, 2011 at 2:41 PM, Jacob Kaplan-Moss wrote: > > On Monday, May 30, 2011, BobX wrote: > >> If anyone from the Django Project itself is listening then can I (very > >> humbly) suggest that some editor recommendations would make a real > >> fine

Re: Accessing template name inside a template?

2011-06-07 Thread Derek
On Jun 6, 8:08 pm, Roy Smith wrote: > For diagnostic purposes, I want every one of my templates to emit an > HTML comment showing the template name.  I was doing fine just > dropping "", etc, in each template, until the first > time I renamed a template and forgot to update the comment :-) > > Any

Re: Users not logging out

2011-06-07 Thread Derek
On Jun 7, 3:39 pm, jayhalleaux wrote: > i take that back. > > If I log in and then I close the tab, I can go back and still use the > url to go to a login required page. close_tab != CLOSE_BROWSER (An interesting discussion on this type of problem: http://www.thewebsqueeze.com/forum/PHP-f11/Logo

Re: Django admin report

2011-06-13 Thread Derek
On Jun 9, 9:13 pm, Leonardo da Costa Santos wrote: > Good morning guys! > > I came to share with you the Django Admin Report ... she is a little Django > app that makes it easy to export reports in PDF using the administration > interface of django. > > The idea is to just tell the class of direct

Re: How Django render the various templates?

2011-06-14 Thread Derek
On Jun 13, 4:30 am, Nge wrote: > Hi Everyone! > > How can I create Django tablet site program? > How can decide Django redirect the web site or mobile site or tablet > site? > Does there has separately browser detection? > You're better off following modern practice and doing feature detection: ht

Re: Django admin report

2011-06-15 Thread Derek
27;other_attribute', ) > > - Finally, make sure you also add the aforementioned 'action' to your > ModelAdmin's list of actions, like so: > > actions = [report_generic, ] > > --- > > I should add that some screenshots would go a long

Re: Avoiding Repetition

2011-06-21 Thread Derek
On Jun 18, 4:33 am, Nikhil Somaru wrote: > Hi, > > Is there a way to reduce the repetition in the following form classes: > > class ItemsStep2(ModelForm): #approval >     class Meta: >         model = OrderItem >         fields = ('item', 'quantity_requested', 'quantity_approved') >         widget

Re: Possible interest in a webcast/presentation about Django site with 40mil+ rows of data??

2011-06-23 Thread Derek
Carl Please post here when the recording becomes available... some of us do not have access to HD-capable bandwidth yet! 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 dj

Re: Social Networking basics? -Raj

2011-06-24 Thread Derek
> >>> We should distill it into a shorter, newbie-friendly version and get it > >>> posted somewhere official so we can refer to it. > > > I find this document[0] to be really nice, helpful and without that > particular tone. > > Someone from Python Argentina (PyAR) translated it to Spanish and it

Re: Questions on markdown

2011-07-05 Thread Derek
On Jul 5, 12:03 pm, DrBloodmoney wrote: > On Mon, Jul 4, 2011 at 2:22 PM, Petite Abeille > wrote: > > > On Jul 4, 2011, at 8:08 PM, leo wrote: > > >> what i want is > > > To quote the friendly manual: > > > "When you do want to insert a break tag using Markdown, you end a > > line with two or

Re: django-variables

2011-07-12 Thread Derek
On Jul 9, 9:41 am, sandeep kaur wrote: > I want to make some of my data in django-templates, variable. And > separate single file to define the variables. How can I do this? This is a common occurrence for Django - start with the overview here: http://www.djangobook.com/en/2.0/chapter04/ -- You

Re: Emailing submitted forms

2011-07-12 Thread Derek
> >     As the form is quite long I don't want to maintain a > >     field-after-field html template for the results. > > >     Is there any convenient way to do this? > > > Iterate over the fields in the form in an email template and send that > > template over? > > Hmm, yes, that'll do. I was hop

Re: Django Knowledge Strorehouse

2011-07-12 Thread Derek
""" On Jul 10, 5:34 pm, "Cal Leeming [Simplicity Media Ltd]" wrote: Sadly, with all the extra projects I'm working on atm, it would just sit in my todo list for at least 3-6 months :( On Sun, Jul 10, 2011 at 3:59 PM, Jacob Kaplan-Moss wrote: [If you want to add search to the community aggrega

Re: Django form validation.. does anyone else find it awkward??

2011-07-12 Thread Derek
On Jul 12, 10:15 am, Venkatraman S wrote: > On Tue, Jul 12, 2011 at 1:23 PM, Cal Leeming [Simplicity Media Ltd] < > > > cal.leem...@simplicitymedialtd.co.uk> wrote: > > On 12 Jul 2011 08:13, "bruno desthuilliers" > > wrote: > > > > On Jul 12, 3:37 am, Venkatraman S wrote: > > > > > On the valid

Re: Django open source cashflow management app

2011-07-26 Thread Derek
On Jul 25, 8:51 pm, zodman wrote: > http://misgastos.zodman.com.mxits on spanish sorry. > > https://github.com/zodman/misgastos/ > > On Sun, Jul 24, 2011 at 8:44 AM, mf wrote: > > Does anyone knows about an open source cashflow management app like > > this one[0], built with django?. > > > [0]htt

Re: drag and drop rows on django admin

2011-07-26 Thread Derek
On Jul 26, 11:03 am, Tom Evans wrote: > On Tue, Jul 26, 2011 at 6:32 AM, rahul jain wrote: > > Tried this snippet but not working > > >http://djangosnippets.org/snippets/2306/ > > > Anyone else tried it, I would like to drag and drop rows on django admin. > > > Thanks. > > > RJ > > 1) Resending t

Re: Extending new User form

2011-07-28 Thread Derek
On Jul 28, 10:31 am, Shegoroa wrote: > I am having difficulty figuring out how to make an admin when creating > a new user to have an extra field specifying users location. > > I found lots of information on how to extend the user profile and i > did so > (source of > information)http://stackover

Re: Django open source cashflow management app

2011-07-28 Thread Derek
On Jul 28, 5:27 am, zodman wrote: > the app is back :) Oops! Google Chrome could not find misgastos.zodman.com.mxits Looks like: http://misgastos.zodman.com.mx/ is the correct URL! -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to

Re: Django open source cashflow management app

2011-07-28 Thread Derek
On Jul 28, 5:33 pm, Derek wrote: > On Jul 28, 5:27 am, zodman wrote: > > > the app is back :) > > Oops! Google Chrome could not find misgastos.zodman.com.mxits > > Looks like:http://misgastos.zodman.com.mx/ > is the correct URL! But unfortunately, the registratio

Re: Django open source cashflow management app

2011-07-28 Thread Derek
On 28 July 2011 17:35, Derek wrote: > On Jul 28, 5:33 pm, Derek wrote: > > On Jul 28, 5:27 am, zodman wrote: > > > > > the app is back :) > > > > Oops! Google Chrome could not find misgastos.zodman.com.mxits > > > > Looks like:http://misgasto

Re: Komodo IDE better screenshots (worth reading!)

2011-08-02 Thread Derek
Been using Komodo for over a year - it has never crashed on me (that I've noticed anyway ;) On Aug 1, 10:19 am, Thomas Weholt wrote: > Hmmm ... I've had the same problem using PyCharm; it just doesn't look > good, but after a while I stopped noticing and started loving the > features of that IDE.

Re: About user auth page

2011-08-03 Thread Derek
On Aug 3, 8:28 am, Bruce Dou wrote: > Why there is not a default user login, user register template? > And Can not find some examples. > > What is your advice to create user auth pages? The Django Admin has a default user register template; you'll be asked to create default user when you run 'mana

Re: dull look after install on ubuntu

2011-08-11 Thread Derek
To quote a sporting hero from my country: "The more I practice, the luckier I get" ~ Gary Player On Aug 11, 12:48 pm, Peter Kovgan wrote: > Gelonida N, thanks. > > I believe you , I'm just unlucky programmer :) > > I should reinstall my linux django from scratch. > > Thank you for the explanation

Re: Showing per-user information in admin

2011-08-12 Thread Derek
On Aug 12, 1:29 pm, Isaac wrote: > Hi dudes, > > I'm having trouble at finding a solution for my problem. All I want to > do is tune django admin to show, for a given user an a given model, only > instance related to that user. > > my pseudocode > > class User >      ... > class A >      foreign_k

Re: How to store variable timedeltas in a Django model?

2011-08-15 Thread Derek
Perhaps all those that contributed code can add their contributions to: http://djangosnippets.org/ Where it will be centrally accessible, searchable etc etc. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to dj

Re: 3rd party Apps in Django

2011-08-16 Thread Derek
Chris "Dingo" projects? Is that what they call them in Australia ;) On Aug 16, 12:54 am, Chris Lawlor wrote: > +1 for using virtualenv. Indispensable for working on more than one dingo > project on the same development machine. If you're developing on Linux or > Mac, take a look at virtualenv

Re: help error in form usage

2011-08-18 Thread Derek
The Django Book is a useful general introduction; but now more than 2 years old. In a framework like Django, which is under constant development, such old information gets out-of-date very fast. Tom correctly pointed you to the docs; and that is really the best place to work from now that you are

Re: Using the Django Admin to change a password.

2010-12-13 Thread derek
I've been getting the same error. There are a number of tickets that have been posted about this, most of which were closed, the reason been given that they are duplicates of: http://code.djangoproject.com/ticket/3011 which has been open for four (4!) years. http://code.djangoproject.com/ticket/9

Re: Showing some extra HTML in a ModelForm

2010-12-14 Thread derek
Assuming its the same images you want to display for a given model, you could create a custom form for that model. See: http://docs.djangoproject.com/en/dev/ref/contrib/admin/#templates-which-may-be-overridden-per-app-or-model On Dec 14, 3:25 am, "Elmar A." wrote: > Hi > > I'd like to add some a

Re: looking for python or django SQL data editor

2010-12-19 Thread derek
Uh - that would be Django Admin ... an app that allows users to add/ delete/update (and search) records. http://docs.djangoproject.com/en/dev/ref/contrib/admin/ On Dec 19, 2:45 am, Len Conrad wrote: > phpmyadmin and other such mysql db design/maintain tools do too much, too > complicated. > > I'

Re: Calling a Method from a Form

2010-12-23 Thread derek
apter 7 on Forms (http:// www.djangobook.com/en/2.0/chapter07/) has some examples you could adapt for your specific problem. But, you *really* need to start from Chapter 1 so you have grasped the core concepts. I speak from personal experience - its an excellent read. Hope this helps! Derek On

Re: Massive insertion of records

2010-12-27 Thread derek
Can you explain what you mean by "manual commitments" (preferably with a code example)? Thanks Derek On Dec 26, 4:38 am, Silva Paulo wrote: > OK. I found a "solution". > Using manual commitments after lots of insertions (ex. >1000) makes the > massive insertion

Re: Parse content

2010-12-27 Thread derek
Not sure what you mean by "the model view", but its possible to create code to parse the text and use that in a specialised tag. See, for example, http://code.djangoproject.com/wiki/contentBBCode_parser On Dec 24, 4:13 pm, Jonas Geiregat wrote: > Hello, > > I have some content that is stored as

Re: Massive insertion of records

2010-12-29 Thread Derek
Thanks Craig - that explains it very clearly indeed ("textbook answer"!) On 27 December 2010 16:50, W. Craig Trader wrote: > Derek ... > > Quoting from http://docs.djangoproject.com/en/1.2/topics/db/transactions/: > >> Django’s default behavior is to run with

Re: ModelForm validation

2010-12-29 Thread derek
see: http://docs.djangoproject.com/en/dev/topics/forms/?from=olddocs#processing-the-data-from-a-form) HTH Derek On Dec 28, 10:21 pm, Axel Bock wrote: > Hi all, > > I have this little problem. In my little webapp I have a data model which > defines several required fields. Depending on WHO

Re: ModelForm validation

2010-12-30 Thread derek
form = ContactForm(request.POST) if form.is_valid(): topic = form.clean_data['topic'] Now if you wanted to overide the topic, you could instead have: topic = 'my custom text' Hope this is clearer! Derek On Dec 29, 4:07 pm, Axel Bock wrote: >

Re: Massive insertion of records

2011-01-07 Thread Derek
be incredibly useful. Thanks! On 6 January 2011 17:20, Thomas Weholt wrote: > Just want to mention DSE which is especially made to solve problems > with mass insert and/updates in django: > > http://pypi.python.org/pypi/dse/0.3.0 > > Regards, > Thomas > > On Wed, Dec

Re: Can't use dumpdata and loaddata to migrate non-ASCII data between databases

2011-01-07 Thread derek
Maybe Google for this? e.g. http://www.codesmell.org/blog/2009/03/migrate-data-from-postgres-to-mysql/ On Jan 4, 1:49 am, Eric Chamberlain wrote: > Or is there a better way to migrate a database from postgres to MySQL? > > On Jan 3, 2011, at 6:35 PM, Eric Chamberlain wrote: > > > > > > > > > H

Re: Custom queryset on a ModelForm field

2011-01-07 Thread derek
Re: "why isn't there a proper API documentation on django like doxygen? I find the django documentation full of content but awful structure! " Have a look at: http://docs.djangoproject.com/en/dev/internals/documentation/ I am curious as to what specific problems you have? I have read the docs f

Re: A few beginner questions

2011-01-07 Thread derek
Re: "inversion of control" in Python - look at: http://plope.com/control_inversion http://code.activestate.com/recipes/413268-dependency-injection-the-python-way/ http://blog.code.zaubersoftware.com/2009/04/controlfreak-python-inversion-of.html On Jan 5, 12:06 am, Ondřej Mirtes wrote: > Hello,

Re: A few beginner questions

2011-01-07 Thread derek
Re: " I would like to read about some best practices about midsize and large Django projects." I would recommend first implementing a small-ish but meaningful (i.e. something that addresses a Real World problem, and that you will actually use) project; that way you will see the overall structure a

Re: A few beginner questions

2011-01-10 Thread derek
Apps vs Projects There is probably no one better to address this topic than James Bennet - see: http://www.b-list.org/weblog/2008/feb/11/integrity/ (e.g. "when Django first appeared I was playing with Rails, and the available options for this sort of reusable functionality in Rails all, frankly, s

Re: A few beginner questions

2011-01-10 Thread derek
Just one point of clarity - the intention is clearly for apps to be small and focused and "do one thing well". Like much of Python, of course, you as a developer can abuse this to your heart's content and create humugenous and unwieldy code bases. (Pinax, incidentally, is not an "app", but a bund

Runtime Error: maximum recursion depth exceeded while calling Python object

2011-01-11 Thread Derek
dering if anyone else has encountered this type of problem (code for models working and then suddenly generating numbers of the same type of error) and can give some general pointers on how to solve this (short of ripping out all the recent changes)? Thanks Derek -- You received this message because

Re: Django's documention is horrible

2011-01-11 Thread derek
My 2c (as a lowly Django user). Having used Another Large Web Framework (open source) for nearly 10 years, I can say with confidence that Django's human-written documentation is superb. The ALWF documentation was never kept up-to-date (and the online API did not really help much) - the user's had

Overcoming Django 1.2.4's "no query string in the URL"?

2011-01-12 Thread Derek
add all of a model's fields to the list_filter tuples) 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-us...@googlegroups.com. To unsubscribe from this group, send email t

Re: Overcoming Django 1.2.4's "no query string in the URL"?

2011-01-12 Thread Derek
n 12, 2:54 pm, Ramiro Morales wrote: > On Wed, Jan 12, 2011 at 9:24 AM, Derek wrote: > > Unfortunately my existing web app relies heavily on what I now see is a > > feature that was "was never documented or supported" i.e. the ability to > > filter a change list in

Re: HTML special chars in form labels

2011-01-12 Thread Derek
Have you tried safe or safeseq tags, applied to those specific labels? http://docs.djangoproject.com/en/dev/ref/templates/builtins/?from=olddocs#safe On Jan 11, 8:27 pm, Vsevolod wrote: > Django known to escape whole form label text. > Still I have a need to insert special characters (nbsp, dashe

Re: Runtime Error: maximum recursion depth exceeded while calling Python object

2011-01-12 Thread Derek
Still not working, but I suspect a recent upgrade to Django 1.2.4 might be the cause. Does anyone know (or have experience) of this kind of error when upgrading? On Jan 12, 9:38 am, Derek wrote: > Working with Django 1.2.3 > > I had an application that was running well.  However, so

Re: Need HELP urgently

2011-01-12 Thread Derek
You could also consider using an AJAX-based "autocomplete" approach; see: http://code.djangoproject.com/wiki/AutoCompleteSolutions On Jan 12, 7:27 am, gupta-django wrote: > I have two application > > 1. App1 - It has a Model Class "Entry" that has 20 entries > 2. App2 - It has a Model Class "

Re: Runtime Error: maximum recursion depth exceeded while calling Python object

2011-01-13 Thread Derek
I have now installed Apache + mod_wsgi locally and run the app. I do not get the recursion error that is happening on the server. I'd welcome any suggestions as to how to go about solving this. Thanks Derek On 13 January 2011 08:48, Derek wrote: > Still not working, but I suspect

Re: performance fields in forms.py (province/city problem)

2011-01-13 Thread Derek
Care to post the solution here (or on a blog)? On Jan 13, 1:31 pm, marco carminati wrote: > solved. > thank you all > > On Jan 12, 8:59 pm, marco carminati wrote: > > > Dear all, > > i'm trying to improve the performance during the modify of one of my > > models' > > > I've the classic province

Re: Group methods

2011-01-14 Thread Derek
http://tinyurl.com/4utep4m On Jan 14, 12:06 am, Brian Craft wrote: > Are there docs somewhere for the Group methods? E.g., I discovered > through extensive googling that I can call user.groups.all(), but I > can't find docs of an "all()" method, or any other method for Groups. > If there aren't d

Re: django-admin.py not working?

2011-01-18 Thread Derek
You're right - they don't (and you can suggest they do - other code on the same page does show this e.g. python manage.py runserver). However... Django is written in Python and it does say right on the "Getting started" page (http://docs.djangoproject.com/en/dev/intro/) that "If you’re new to Pyt

Re: newbie

2011-01-18 Thread Derek
1) I have not had any problems or conflicts; just make sure you load the .js libraries into whichever pages need them (using a "parent" template is probably the most sensible way). 2) You can only use .js inside templates - it does not make sense to use them elsewhere - templates deal with your ap

Re: Django forms

2011-01-18 Thread Derek
First read and understand: http://docs.djangoproject.com/en/dev/topics/forms/modelforms/ Then: 1. http://stackoverflow.com/questions/1645444/django-modelform-accessing-a-fields-value-in-the-view-template 2. http://neverfear.org/blog/view/123/Auto_Generate_Forms_With_Django_s_ModelForm On Jan 16

Re: Fwd: PostGISAdapter error

2011-01-18 Thread Derek
Not an answer, I know, but did you try the GeoDjango group? http://groups.google.com/group/geodjango/topics On Jan 17, 7:31 pm, "Robinson B. Heath" wrote: > It has been a couple of weeks without a reply.  Is there somewhere else I > should post this or am I on my own? > > Begin forwarded messag

Re: Pinax: worth installing?

2011-01-19 Thread Derek
ength of successful open source projects is the interaction between developers and community. What has the response been when you have communicated these issues to them ... do they not care? do they respond at all? Thanks Derek On 19 January 2011 18:46, Jason wrote: > I've found the

Django snippets - printable view?

2011-01-19 Thread Derek
I see the original design for the Django Snippets site was by Jeff Croft. I am not sure if he is involved any more, or who maintains the site design, but I was wondering if the CSS could be upgraded to allow for an improved, printable view? Thanks Derek -- You received this message because you

Re: Pinax: worth installing?

2011-01-23 Thread Derek
an updated-and-production-ready (foundational) social_project: a) next few weeks b) next few months c) maybe sometime in 2011 Thanks Derek On Jan 23, 1:21 am, James Tauber wrote: > On Jan 18, 2011, at 9:32 AM, Russell Keith-Magee wrote: > > > > > I think we need to clear

Re: how to remove add and change links on admin dashboard

2011-01-23 Thread Derek
In the docs: http://docs.djangoproject.com/en/dev/ref/contrib/admin/#overriding-admin-templates Also helpful: http://www.ibm.com/developerworks/opensource/library/os-django-admin/index.html On Jan 24, 6:53 am, Subhranath Chunder wrote: > Override the templates. > > On 23 Jan 2011 07:12, "rahul

Re: Some Questions

2011-01-24 Thread Derek
1. Not sure about those you mention, but have a look at: http://www.nosqldatabases.com/main/2010/7/27/django-and-neo4j-domain-modeling-that-kicks-ass.html 2. See: http://stackoverflow.com/questions/238081/how-do-you-log-server-errors-on-django-sites (Disclaimer - I do not work with any of these

<    1   2   3   4   5   6   7   8   9   10   >