I'm working through the tutorials and have encountered a strange
problem. So far everything works but Python doesn't acknowledge my
base site as a package. So everywhere that you see a reference like
"mysite.poll" I need to use only "poll". I think that my problems stem
from the following section
On Feb 3, 6:04 pm, Adam Yee wrote:
> On Feb 3, 9:49 am, Joshua Russo wrote:
>
> > I'm working through the tutorials and have encountered a strange
> > problem. So far everything works but Python doesn't acknowledge my
> > base site as a package. So everyw
I'm developing an app and want to use Portuguese characters in the
verbose field names for my models. The tables were created fine but
when I tried to implement the admin pages I received a
DjangoUnicodeDecodeError when it hit the first non-ASCII character. Is
this just a bug with the admin page p
On Feb 11, 1:38 pm, Ramiro Morales wrote:
> On Wed, Feb 11, 2009 at 11:22 AM, Joshua Russo
> wrote:
>
> > I'm developing an app and want to use Portuguese characters in the
> > verbose field names for my models. The tables were created fine but
> > when I trie
On Feb 11, 1:38 pm, Karen Tracey wrote:
> On Wed, Feb 11, 2009 at 8:22 AM, Joshua Russo wrote:
>
> > I'm developing an app and want to use Portuguese characters in the
> > verbose field names for my models. The tables were created fine but
> > when I tried to impleme
On Feb 11, 1:38 pm, Ramiro Morales wrote:
> On Wed, Feb 11, 2009 at 11:22 AM, Joshua Russo
> wrote:
>
> > I'm developing an app and want to use Portuguese characters in the
> > verbose field names for my models. The tables were created fine but
> > when I trie
On Feb 11, 6:03 pm, Karen Tracey wrote:
> On Wed, Feb 11, 2009 at 12:29 PM, Joshua Russo
> wrote:
>
>
>
> > Ok, I'm still having issues.
>
> > I'm using Django 1.0.2-final and Python 2.5.4
>
> > The models.py starts with the proper encoding
On Feb 11, 4:54 pm, Ramiro Morales wrote:
> On Wed, Feb 11, 2009 at 3:29 PM, Joshua Russo
> wrote:
>
> > Ok, I'm still having issues.
>
> > I'm using Django 1.0.2-final and Python 2.5.4
>
> > The models.py starts with the proper encoding string of:
On Feb 11, 6:44 pm, Karen Tracey wrote:
> On Wed, Feb 11, 2009 at 2:30 PM, Joshua Russo wrote:
>
> > Thanks so much. I think you are right. I will let you know tomorrow if
> > I was able to fix it. I just need to figure out where the encoding is
> > set in NetBe
Ok, so I believe I'm following the documentation properly for a
ManyToManyField with the Through=xxx option here:
http://docs.djangoproject.com/en/dev/ref/models/fields/#manytomanyfield
class Pessoa(models.Model):
Nome= models.CharField('Nome', max_length=100)
Localidade = models
Here is the traceback:
Environment:
Request
Method: POST
Request URL: http://localhost:8000/admin/matriz/matriz/add/
Django Version: 1.0.2 final
Python Version: 2.5.4
Installed Applications:
['django.contrib.auth', 'django.contrib.contenttypes',
'django.contrib.sessions', 'django.contrib.sites',
Think I found a bug in the ManyRelatedManager that occurs when you try
to include a ManyToManyField relation in an admin edit page. I
personally tried to have the relational table/module as an inline
display of primary entity module. It seems to have been missing the
__unicode__ / __str__ methods.
I have a model admin page where I want to edit a ManyToMany relation
model as an inline model but It is treating the extra entries for the
inline relation as required. How do I make the inline model not
required?
--~--~-~--~~~---~--~~
You received this message becau
Ok, I figured out what was going on. I was testing some custom save
logic and was just reloading the page to have my browser (Firefox)
resend the post data. The validation of the inline models works just
fine if I come into the model change page normally.
On Feb 27, 7:29 pm, Joshua Russo wrote
I found this in my searches for formatting a decimal as a proper
currency output: http://www.djangosnippets.org/snippets/552/
The problem I'm running into is that the setLocale() line seems to be
choking on the non-base 128 characters that display in my site. I'm
creating the site to display Port
ist.py) is where I am attempting to put the
currency format at the moment.
On Mar 10, 8:11 am, Joshua Russo wrote:
> I found this in my searches for formatting a decimal as a proper
> currency output:http://www.djangosnippets.org/snippets/552/
>
> The problem I'm running into i
On Mar 10, 8:29 am, Malcolm Tredinnick
wrote:
> On Tue, 2009-03-10 at 02:11 -0700, Joshua Russo wrote:
> > I found this in my searches for formatting a decimal as a proper
> > currency output:http://www.djangosnippets.org/snippets/552/
>
> Oh, that's a really bad idea.
I'm trying to use the makemessages command to create .po files and I'm
running into a problem scanning .html files. I'm running XP Pro and
using libiconv (1.9.2) and gettext (0.13).
None of the {% trans 'text' %} entries are being picked up in the
scan. I'm loading the I18n library in all of my t
When I installed Libiconv (1.9.2) and gettext (0.13) on my XP Pro
machine and tried to run makemessages it initially gave me an error
message saying that it could not find iconv.dll. I went to the install
directory and I had a libiconv2.dll but no iconv.dll. I tried copying
and renaming the file
I started using PoEdit but it seems to thing that the .po files
created by makemessages are malformed, or at least don't have all the
right headers. Is there a better editor for Windows?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to t
On Jun 19, 7:08 pm, Joshua Russo wrote:
> I'm trying to use the makemessages command to create .po files and I'm
> running into a problem scanning .html files. I'm running XP Pro and
> using libiconv (1.9.2) and gettext (0.13).
>
> None of the {% trans 'text
On Jun 20, 3:35 pm, Ramiro Morales wrote:
> On Fri, Jun 19, 2009 at 5:15 PM, Joshua Russo wrote:
>
> > When I installed Libiconv (1.9.2) and gettext (0.13) on my XP Pro
> > machine and tried to run makemessages it initially gave me an error
> > message saying that it cou
On Jun 20, 3:35 pm, Ramiro Morales wrote:
> On Fri, Jun 19, 2009 at 5:15 PM, Joshua Russo wrote:
>
> > When I installed Libiconv (1.9.2) and gettext (0.13) on my XP Pro
> > machine and tried to run makemessages it initially gave me an error
> > message saying that it cou
On Jun 23, 12:49 pm, "http://groups.google.com/group/django-users/";
wrote:
> Hello everyone,
> i got a problem with working with Ajax requests @ the Admin models.
> How can i get requests from Ajax to the AdminModel to get 4 example
> from a dropdownmenu my manytomanyfield changed.
> its tricky!
I have a seriese of reports that have a signature section with the
name below. The name does not change very often but it will change at
some point and I want a layman to be able to change the name without
having to edit the scary looking template files. Can I specify an
arbitrary field from an ar
I'll check it out. Thanks.
On Jul 6, 1:23 pm, Daniel Hilton wrote:
> Couldn't you use something like django-chunks for this?
>
> Specify a single chunk something like footer and then pull it in for every
> report?
>
> HTH
> Dan
>
> 2009/7/6 Joshua Russo
I'm in the process of implementing testing (both doc tests and unit
tests) though I'm having some conceptual difficulty. I'm not sure how
far to take the testing. I'm curious what people concider an
appropriate level of testing.
This thought struck me most when I was going through the testing
doc
> besides the testing issues (which are certainly a heated debate!), i have to
> say that my Django projects became far better organized and a lot more
> flexible when i learned to put most of the code on the models, and not on the
> views.
I find this really interesting because I wanted to pu
I want to test my forms but I'm not sure the best way to go about it.
It seems like it might be similar to views but I can't find much
discussion of form testing in any of the discussions about unit
testing.
Any suggestions are much appreciated.
Thanks
Josh
--~--~-~--~~~-
On Jul 16, 1:35 pm, Javier Guerra wrote:
> On Thu, Jul 16, 2009 at 9:27 AM, Joshua Russo wrote:
> > What are some examples of mutating operations (and other operations
> > for that matter) that you use in your models?
>
> the most obvious are:
>
> - 'calculated
Great ideas! I've started moving some of my logic that I had in
admin.py and views.py into model.py and things are already starting to
look easier in terms of testing.
My only real hurdle now is testing validation logic on the admin pages
and the form creation logic that is the main page to the a
I think I might be overlooking something simple here. I have a set of
4 fields in almost every table (user create & modified and date create
& modified). The date (datetime) is easy with auto_now and
auto_now_add options.
The user has been much trickier. I can't figure out how (if possible)
to ge
On Jul 16, 11:11 pm, Russell Keith-Magee
wrote:
> On Thu, Jul 16, 2009 at 10:46 PM, Joshua Russo wrote:
>
> > I want to test my forms but I'm not sure the best way to go about it.
> > It seems like it might be similar to views but I can't find much
> > discus
I second that. In my experience they are inherently very context specific,
with very unique databases and code bases. With that said, you
can definitely develop an expert system using django. It's more about
the algorithms you produce than the environment you produce them in.
On Fri, Jul 17, 2009
>
> I was thinkin about using the powerful of django for dabase admin and
> templates for web and make the
> algorithms on python modules... after that call them as a simple module...
> my question is about a
> maden job about it.
Its an excellent idea to use the django admin app to manage any ki
On Sat, Jul 18, 2009 at 9:38 AM, V wrote:
> Some time ago I wrote down my experience on testing, including testing
> forms: http://viktornagy.com/blog/2009/05/24/what-test-django/
>
> moreover, I would recommend to check out the tests of some existing
> projects, that might give you some clues on
On Sat, Jul 18, 2009 at 8:06 AM, Matthias Kestenholz <
matthias.kestenh...@gmail.com> wrote:
> If you really need to do that (or if you are just extremely lazy)
> there is a cookbook recipe for achieving this sort of thing:
>
> http://code.djangoproject.com/wiki/CookBookThreadlocalsAndUser
>
> Tha
On Sat, Jul 18, 2009 at 11:42 AM, Carlos Eduardo Sotelo Pinto <
csot...@aqpglug.org.pe> wrote:
>
> Hi
> >
> > Its an excellent idea to use the django admin app to manage any kind of
> > database. Though I'm not familiar with a maden job. Could you explain
> > what you are referring to?
>
> Iam tal
On Sat, Jul 18, 2009 at 12:17 PM, Russell Keith-Magee <
freakboy3...@gmail.com> wrote:
> As is often the case in the Django community, one answer is "find
> anything James Bennett has done, and follow his lead". :-)
>
> James has just finished reworking django-registration [1]. One of the
> offsho
On Sat, Jul 18, 2009 at 10:54 AM, V wrote:
> wow, that's a tough question as I'm not self-confident enough to judge
> other's projects and testing, but my guess would be that the
> django.contrib applications have good tests, and I think that the
> tests for my django-donation project (https://la
On Sat, Jul 18, 2009 at 1:15 PM, Carlos Eduardo Sotelo Pinto <
csot...@aqpglug.org.pe> wrote:
>
> I understand. Well I mean a papper, page resource to explain hoy to use
> django for expert system or
> mayme an application resource example about using django on expert system
> to take it as a star
On Sat, Jul 18, 2009 at 1:31 PM, Joshua Russo wrote:
> On Sat, Jul 18, 2009 at 1:15 PM, Carlos Eduardo Sotelo Pinto <
> csot...@aqpglug.org.pe> wrote:
>
>>
>> I understand. Well I mean a papper, page resource to explain hoy to use
>> django for expert system or
On Sat, Jul 18, 2009 at 8:51 PM, AKK wrote:
>
> hi,
>
> i have a form like this:
>
>
>User name:
>
>Password:
> id="password">
>
>
>
>
>
>
> and the next field is where the user should be redirected assuming
> they have the correct details.
>
> When they login i want
On Sat, Jul 18, 2009 at 9:03 PM, sjtirtha wrote:
> class AbstractContent(models.Model):
> viewed = models.PositiveIntegerField(max_length=7,
> blank=True, null=True)
> #rating =
> #ranking =
> created_by = models.ForeignKey(User)
> changedBy
2009/7/19 Tomasz Zieliński
> So, should m.save() set m.id to some other value than None
> or this is relaxed when Warning exception is thrown?
It's the database that gives m.id a value upon a valid save. So because the
record couldn't be saved it never received a value.
--~--~-~--~
On Mon, Jul 20, 2009 at 9:23 AM, Matthias Kestenholz <
matthias.kestenh...@gmail.com> wrote:
> thread locals have all the problems which are generally associated
> with global variables. They might be overwritten by other code, they
> make testing extremely difficult because the behavior of method
On Mon, Jul 20, 2009 at 8:30 PM, sjtirtha wrote:
>
> class ContentAssoc(models.Model):
> object_a = models.PositiveIntegerField()
> type_a = models.ForeignKey(ContentType, related_name='type_a')
> object_b = models.PositiveIntegerField()
> type_b = models.ForeignKey(ContentType, r
On Mon, Jul 20, 2009 at 9:35 PM, Daniele Procida
wrote:
>
> I finally have ldapauth working now, and a user who is in our LDAP
> database can connect as a Django User.
>
> But it's not entirely satisfactory. Before the LDAP user becomes a
> Django User they have to try logging (which fails of cour
On Mon, Jul 20, 2009 at 10:26 PM, sico wrote:
>
> thats cool to know, but not quite what I'm after I don't think. If
> there was a simple way to display the label, field and any errors all
> at once would be nice otherwise it gets quite cumbersome to be
> repeating that all each time.
>
> Basica
I have a complex form that where I generate a grid (for lack of a
better term) of fields for data entry. To simplify the template
context I have a dictionaries within dictionaries so I can just use
FOR loops within FOR loops in the template.
My problem was that, unless I wrapped my fields in a Bo
That looks really slick. Thanks for the link.
On Tue, Jul 21, 2009 at 8:44 PM, Jonas Obrist wrote:
>
> Haven't started by i18n yet but rosetta looks good:
> http://code.google.com/p/django-rosetta/
>
> bittin wrote:
> > i also use PoEdit =)
> >
> > On Fri,
On Wed, Jul 22, 2009 at 10:51 AM, Russell Keith-Magee <
freakboy3...@gmail.com> wrote:
>
> Secondly, it's difficult to give an appraisal of a technique when all
> you have to go by is a vague description. Your explanation is a bit
> hard to follow - you talk at length about fields, but don't mentio
On Wed, Jul 22, 2009 at 10:58 AM, Divesh Gidwani wrote:
>
> Also, what kind of views do I need? I'm really confused about that
> part.
If you want to mimic the current application you will need to create custom
views and forms. It's really easy once you get the idea, but it's taken me a
couple o
On Wed, Jul 22, 2009 at 10:39 PM, Joshua Russo wrote:
> On Wed, Jul 22, 2009 at 10:58 AM, Divesh Gidwani wrote:
>
>>
>> Also, what kind of views do I need? I'm really confused about that
>> part.
>
>
> If you want to mimic the current application you will n
Is there any difference between using import() versus not in the url
pattern list?
(r'^accounts/login/$', 'django.contrib.auth.views.login'),
(r'^admin/doc/', include('django.contrib.admindocs.urls')),
--~--~-~--~~~---~--~~
You received this message because
On Thu, Jul 23, 2009 at 2:18 PM, Matthias Kestenholz <
matthias.kestenh...@gmail.com> wrote:
>
> On Thu, Jul 23, 2009 at 4:51 PM, Joshua Russo
> wrote:
> >
> > Is there any difference between using import() versus not in the url
> > patter
t; http://people.fas.harvard.edu/~svbhamid/
>
>
>
> On Thu, Jul 23, 2009 at 11:33 AM, Joshua Russo wrote:
>
>> On Thu, Jul 23, 2009 at 2:18 PM, Matthias Kestenholz <
>> matthias.kestenh...@gmail.com> wrote:
>>
>>>
>>> On Thu, Jul 23, 2009 at 4:51 P
On Thu, Jul 23, 2009 at 3:09 PM, Matthias Kestenholz <
matthias.kestenh...@gmail.com> wrote:
>
> Well, there is a big difference between the two. include() takes the
> python path to an URLconf file while the other form takes a view.
>
> You should read the documentation on this page if you haven't
On Jul 23, 12:41 am, Russell Keith-Magee
wrote:
> This sounds like you are on the right track. My only other suggestion
> is that it might be worth looking into using FormSets to simplify the
> logic for displaying multiple Payment forms on the page.
Thanks for your input. Just to give you an up
On Jul 23, 12:41 am, Russell Keith-Magee
wrote:
> The decision about splitting this into more than one view is
> approaching an 'inmates running the asylum' issue [1]. Work out what
> UI will work for your users. Then work out how to make that
> implementation work. Don't let the implementation d
On Thu, Jul 23, 2009 at 9:31 PM, Rusty Greer wrote:
>
> how do i create a query on the size of an image?
>
> for example:
> class Image(models.Model):
>
>image = models.ImageField(upload_to=upload_to('images'), db_index=True)
>
>
> if i try something like:
>
>for image in Image.objects.fi
On Thu, Jul 23, 2009 at 10:53 PM, Nail wrote:
>
> Hello, developers!
>
> Please help me with one problem. I spent 2 days attempting to solve
> it. And now i have some solution, but i don't like it.
>
> My application manages music tracks.
> There is models: Artist, Album, Track.
> Simply:
>
> cla
I ran into some conceptual problems with lazy vs non-lazy too. Any global
context needs to be lazy. This includes everything declared outside of any
function or class context and the class instance variable declarations (tho
not the declarations made in __init__ or __new__ of a class)
On Fri, Jul 2
On Sat, Jul 25, 2009 at 9:23 PM, Adi wrote:
>
> I'm running a couple of django sites on a VPS with nginx and fastcgi
> and I'm a little concerned because of the memory usage.
> According to the "free" command, each site uses about 50MB of RAM
> (I've ran free before and after starting the fastcgi
On Sun, Jul 26, 2009 at 9:13 PM, Vitaly Babiy wrote:
> How does one go about registering a namespace?
Not quite sure what you mean by that, but my guess is that you are assuming
you need to register your namespace (modules?) before being able to import
them. If this is what you are asking, you
I'm raising an error in one of my model save forms and it's not converting
the translation string to unicode. If I first pass it into the unicode()
function it works though. The following is the pertinent portions of my
model class.
class Matriz(modelUtils.MyModelAudit):
ULTIMOANO_MISSING_ERRO
On Jul 28, 2:00 pm, Joshua Russo wrote:
> I'm raising an error in one of my model save forms and it's not converting
> the translation string to unicode. If I first pass it into the unicode()
> function it works though. The following is the pertinent portions of my
> model
On Tue, Jul 28, 2009 at 8:58 PM, Streamweaver wrote:
>
> To be clear. Essentially I just want to merge the object instance and
> POST data with the POST data overwriting the instance where it's
> supplied. Right now if I don't supply a field in my POST data it just
> submits null values.
>
> Tha
On Wed, Jul 29, 2009 at 5:23 AM, James Bennett wrote:
>
> Tonight we're extremely proud to announce the release of Django 1.1,
> the latest major milestone in Django's development.
>
> To learn about the new release:
>
> * Blog post: http://www.djangoproject.com/weblog/2009/jul/29/1-point-1/
> * R
On Wed, Jul 29, 2009 at 12:35 PM, Juanjo Conti wrote:
>
> In http://docs.djangoproject.com/en/dev/ref/django-admin/ i read
> "inspectdb works with PostgreSQL, MySQL and SQLite. Foreign-key
> detection only works in PostgreSQL and with certain types of MySQL
> tables."
>
> Could you tell me the pr
I'm confused about how sqlcustom fits into the dbsync process.
I ran "manage.py sqlcustom myapp" and it printed the sql properly but that's
all it did. Granted that's all the docs say it does anyway, but then how do
execute those statements?
--~--~-~--~~~---~--~~
Yo
On Wed, Jul 29, 2009 at 2:39 PM, Juanjo Conti wrote:
> 2009/7/29 Joshua Russo :
> > On Wed, Jul 29, 2009 at 12:35 PM, Juanjo Conti
> wrote:
> >>
> >> In http://docs.djangoproject.com/en/dev/ref/django-admin/ i read
> >> "inspectdb works wi
On Jul 29, 12:48 pm, Joshua Russo wrote:
> I'm confused about how sqlcustom fits into the dbsync process.
> I ran "manage.py sqlcustom myapp" and it printed the sql properly but that's
> all it did. Granted that's all the docs say it does anyway, but then how d
On Fri, Jul 31, 2009 at 12:41 PM, ramya wrote:
>
> Hi,
> I have python threaded application + Postgres. I am using Django's ORM
> to save to Postgres..
> I have concurrent save calls. Occasionally 2 threads save with the
> same primary key which leads to an issue.
>
> Postgres log:
> ERROR: dupl
On Tue, Aug 11, 2009 at 6:06 PM, snfctech wrote:
>
> I'm about to start a fairly large project for a mid-sized business
> with a lot of integration with other systems (POS, accounting,
> website, inventory, purchasing, etc.) The purpose of the system is to
> try to reduce current data siloing and
Do you need to do any cleanup of resources when you use a cursor (closing of
connection/cursor)?
I have the following method, do I need to do anything to cleanup resources?
def get_next_NumOrd(self):
from django.db import connection
cursor = connection.cursor()
cursor.execute("SELECT COALESCE(
On Mon, Aug 17, 2009 at 1:56 PM, Lokesh wrote:
>
> I am trying to implement the logging (Code flow tracking) for my
> Django application.
> I would like to store the log messages on daily basis for my
> applications.
>
> Need help or suggestions on how we can implement the logging mechanism
> for
On Mon, Aug 17, 2009 at 2:17 PM, Lokesh wrote:
> I am trying to implement logging mechanism using Python library. But,
> I am not sure on which mechanism/methodology used for Django
> applications.
>
> Is there any predefined process or methodology to be followed for
> Django applications for log
On Tue, Aug 18, 2009 at 8:52 AM, Marek Palatinus wrote:
>
> Hello,
>
> Im doing some validation in ModelAdmin.save_model(). I can cancel
> operation (just dont call parent method), but I also need to show some
> error message to user. Im able to call self.message_user() and show
> INFO message, b
On Tue, Aug 18, 2009 at 1:23 PM, Marek Palatinus wrote:
>
> On Tue, Aug 18, 2009 at 12:22 PM, Joshua Russo
> wrote:
> > On Tue, Aug 18, 2009 at 8:52 AM, Marek Palatinus
> wrote:
> >>
> >> Hello,
> >>
> >> Im doing some validation in Mode
parents / children instead of
> the accounts, so as not to have to duplicate other account data.
>
>
> On Aug 18, 6:30 pm, Joshua Russo wrote:
> > On Tue, Aug 18, 2009 at 8:26 PM, ringemup wrote:
> >
> > > I have accounts that can have multiple aliases, but each ac
On Tue, Aug 18, 2009 at 8:26 PM, ringemup wrote:
>
> I have accounts that can have multiple aliases, but each account must
> have a primary alias. I can think of two ways to institute this, but
> they both have problems:
>
> 1) reference the primary alias from the account:
>
> class Account(mode
On Tue, Aug 18, 2009 at 11:04 PM, ringemup wrote:
>
> Well, I'm trying to implement parent / child aliases, but I'm running
> into problems with class declaration order because I need to reference
> the Alias class from within the Account class as well as referencing
> Account from Alias for valid
On Wed, Aug 19, 2009 at 12:56 PM, Idan Gazit wrote:
>
> Hey all,
>
> I'd like to add some custom exception to a model of mine,
> Foo.FrobNotAllowed, along the lines of ModelName.DoesNotExist.
>
> From looking at models/base.py, it looks like the pattern is to
> override __new__() and use add_to_c
save()
> except MyModel.FrobNotAllowed:
># handle the exception...
>
> It's not a big deal but I figured that emulating the framework isn't a
> bad idea.
>
> On Aug 19, 5:03 pm, Joshua Russo wrote:
> >
27;t be done in Python?
>
>
> On Aug 19, 4:36 am, Joshua Russo wrote:
> > On Tue, Aug 18, 2009 at 11:04 PM, ringemup wrote:
> >
> > > Well, I'm trying to implement parent / child aliases, but I'm running
> > > into problems with class declaration order be
Why does this not work?
>>> import decimal
>>> tst = {'myTst': (decimal.Decimal, 0)}
>>> for k, v in tst:
... print('%s: %s' % (k, v))
...
Traceback (most recent call last):
File "", line 1, in
ValueError: too many values to unpack
>>>
I'm assuming the problem is with the tup
Gotcha, Thanks guys
On Fri, Aug 21, 2009 at 8:28 PM, Randy Barlow wrote:
>
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Joshua Russo declared:
> > Why does this not work?
> > >>> import decimal
> > >>> tst = {'myTst': (dec
You need to remove the references on one side or the other. You need to make
a choice. will events manage photos, or will photos manage events, and so
on. Then if events manage photos, you need to remove all references to
events from the photos app.
It sounds like it will take some reworking of you
I'm working on putting together parsing logic so that I can extract the form
variables from the response content of the test Client. That way I can just
change a few values and throw it back at the server. This is especially
helpful with large dynamic forms that use formsets.
My question is, has th
orm(request.POST)) which you can then untangle to get all
> the fields from the form instance.
>
> On Aug 25, 4:31 pm, Joshua Russo wrote:
> > I'm working on putting together parsing logic so that I can extract the
> form
> > variables from the response content of t
On Tue, Sep 1, 2009 at 1:10 AM, Joshua Partogi wrote:
> Dear all,
> How do we change the displayed application name in django admin? Let's say
> I have an application called foo, I wanted it to be displayed as bar instead
> of foo in the admin system.
>
> I've searched the document but failed to g
On Tue, Sep 1, 2009 at 5:52 AM, nbv4 wrote:
>
> (Pdb) f0
>
> (Pdb) f0.cleaned_data
> {'ipc': False, 'xc': 0, 'app': 0, 'pic': 0, 'cfi_checkride': False,
> 'dual_r': 0, 'date': datetime.date(2009, 9, 5), 'dual_g': 0, 'total':
> 5.5996, 'id': None, 'sic': 0, 'night_l': 0, 'holding':
>
On Tue, Sep 1, 2009 at 10:09 AM, buttman wrote:
>
> On Sep 1, 4:52 am, Joshua Russo wrote:
> >
> > Why are you using commit=False?
>
> If I don't, I get a database error saying "user_id column can't be
> null".
You might want to look at the c
If you ever wanted to create formsets without needing to know all of the
initial data at once, this might help you out.
http://www.djangosnippets.org/snippets/1711/
I used it in a data entry table where the forms of the formset were
intermingled with rows of already created data. I tried to do it
On Thu, Sep 3, 2009 at 1:11 PM, alexandre...@gmail.com <
alexandre...@gmail.com> wrote:
>
> Hi, I'm a newbie on Django and would like a reference reading on model
> fields, form fields and widgets.
>
> For example I want to have a model field called CountryField that
> automatically in forms displ
My goal here is to create a backup and recovery scheme, where recovery is
possible on any computer.
I've been performing incremental updates to an application that people have
started to use. The incremental updates seem to have created a problem for
the dump and load data functions when trying to
On Fri, Sep 4, 2009 at 10:37 AM, Russell Keith-Magee wrote:
>
> On Fri, Sep 4, 2009 at 4:57 PM, Joshua Russo
> wrote:
> > My goal here is to create a backup and recovery scheme, where recovery is
> > possible on any computer.
> > I've been performing incrementa
On Fri, Sep 4, 2009 at 6:37 PM, James Bennett wrote:
>
> On Fri, Sep 4, 2009 at 7:35 AM, Joshua Russo
> wrote:
> > The reason I was looking at the dump data instead of a MySQL backup is
> > because it was more obvious to automate. I'm going to take a closer look
> a
I personally don't have any experience with PostgreSQL and I'm generally
working in a mixed MS and Linux environment. I'm interested to hear peoples
views on the pluses and minuses of the two different systems. I'm a bit of a
query geek too. How does that play in? I know in MySQL there are limitati
1 - 100 of 233 matches
Mail list logo