Re: installation invisible

2013-10-07 Thread Diogene Laerce
pip is a python program, it will install python packages in to the site installation directory of the python it is run with. Therefore, if it is not installing packages where you want, make sure you are running pip with the python that you want to use the package with. It's actually what

django model(s) silently fails to sync to the DB ( for no apparent reason )

2013-10-07 Thread Doug S
I don't think I'm making a rookie mistake, I've looked over my code several times. I've got two pretty simple django models that are just failing to sync to the db during the syncdb there are no errors, even with --verbosity 3 When I try to make a relation to them I get an error saying the

Access the AdminSite object by its name

2013-10-07 Thread Germán Larraín
Hi. When using multiple admin sites, it's necessary to give them (except the default one) a name to be able to reverse URL names correctly. The default admin site's name is 'admin'. https://docs.djangoproject.com/en/1.5/ref/contrib/admin/#multiple-admin-sites-in-the-same-urlconf Is it possible

Re: uptodate Account_balance

2013-10-07 Thread Ovnicraft
Hi Maurice, its very hard understood this but i give a try. if your are working in finance-world you will need update de balance, so it implies fields 'depends' from others transactions, you named deposits/withdraws. You can use aggregations[1] or update field 'manually'. Regards, [1]

Re: uptodate Account_balance

2013-10-07 Thread Daniel Roseman
On Monday, 7 October 2013 18:07:49 UTC+1, MAurice wrote: > needed to no how to have a uniform account_balance figure(after > withdraw or deposit) > > On 10/7/13, Maurice J Elagu wrote: > > The signals are doin the notifications but not updating > > Please learn how to ask

Re: PyCons in Africa

2013-10-07 Thread Vernon D. Cole
It would be wonderful if this could be done. My question is: can it be done? The most populous nation in Africa (and therefore, we must presume, the one with the most Python programmers) is Nigeria. Getting an entrance visa here -- even a tourist visa -- is a challenging thing. It's not

Re: uptodate Account_balance

2013-10-07 Thread Maurice J Elagu
needed to no how to have a uniform account_balance figure(after withdraw or deposit) On 10/7/13, Maurice J Elagu wrote: > The signals are doin the notifications but not updating > > > On 10/3/13, C. Kirby wrote: >> Use signals: >>

Re: uptodate Account_balance

2013-10-07 Thread Maurice J Elagu
The signals are doin the notifications but not updating On 10/3/13, C. Kirby wrote: > Use signals: > https://docs.djangoproject.com/en/dev/topics/signals/ > > post_save check the amount deposited or withdrawn and update the balance > > On Thursday, October 3, 2013 9:42:48 AM

Re: django-registration: extending the user model

2013-10-07 Thread N8
If you mean that the User model doesnt have fields you may want, like telephone or address i.e., the best and easiest way is to use add a UserProfile model with a foreignkey to the User model. Django-profiles is one and it's meant for use with django-registration>

ModelMultipleChoiceField ignore invalid choices?

2013-10-07 Thread Jon Dufresne
Hi, I am using a ModelForm with a ModelMultipleChoiceField. I would like for this field to silently ignore invalid choices instead of creating a form error. Here is my use case: * User A opens form select model choice 1, 2, and 3 * User B (different browser) deletes model choice 3 entirely from

Re: installation invisible

2013-10-07 Thread Tom Evans
pip is a python program, it will install python packages in to the site installation directory of the python it is run with. Therefore, if it is not installing packages where you want, make sure you are running pip with the python that you want to use the package with. Cheers Tom On Mon, Oct

Re: logic problem

2013-10-07 Thread Harjot Mann
On Mon, Oct 7, 2013 at 11:54 AM, Leonardo Giordani wrote: > Are you sure that your DB contains only one entry with that name? > Try printing it in the view you use to render that template and check the > output of the development server. Yes not getting you here

installation invisible

2013-10-07 Thread Mando
Hi, One option would be to set your pythonbrew install in your path. Or Execute pip using the absolute path to your python install. Either way you will still need to set your path. -- You received this message because you are subscribed to the Google Groups "Django users" group. To

installation invisible

2013-10-07 Thread Diogene Laerce
Hi, I installed django through pip : __ Downloading/unpacking Django==1.5.4 Downloading Django-1.5.4.tar.gz (8.1Mb): 8.1Mb downloaded Running setup.py egg_info for package Django warning: no previously-included files matching '__pycache__'

Writing translatable static web pages

2013-10-07 Thread saintger
Hello, I am a bit confused on the best way to handle this problem: My web site needs read-only static web pages (typically the About part of a web site) with 2 simple constraints: - they need to be translated - they need to have flexible layout: to incorporate base headers/footers,

Re: Copy all the data from an existing database when create the testing database.

2013-10-07 Thread Tianyi Wang
Thanks Kelvin, I will have a look at this. It seems interesting. Kelvin Wong writes: > Consider using model factories (you can roll your own) or FactoryBoy > > https://factoryboy.readthedocs.org/en/latest/ > > K > > > On Friday, October 4, 2013 9:17:51 AM UTC-7, Tianyi Wang wrote: >> >> Yes, it'd

Re: image display in admin

2013-10-07 Thread Alban Hertroys
On Monday, October 7, 2013 6:24:54 AM UTC+2, Harjot Mann wrote: > > On Sun, Oct 6, 2013 at 5:57 PM, Harjot Mann > > wrote: > > I am uploading an image in my app and I want to display that image in > > admin site. What should I do? > > >

Re: proper way to override text plugin widget

2013-10-07 Thread Roberto López López
wrong list, sorry :-( On 10/07/2013 11:23 AM, Roberto López López wrote: > Hi, > > The users of my project prefer ckeditor, so I am wondering how to use it > for cms.plugins.text . I am already making use of django-ckeditor in > other parts of the application. Can anyone enlighten me please? > >

proper way to override text plugin widget

2013-10-07 Thread Roberto López López
Hi, The users of my project prefer ckeditor, so I am wondering how to use it for cms.plugins.text . I am already making use of django-ckeditor in other parts of the application. Can anyone enlighten me please? Thanks, Roberto -- You received this message because you are subscribed to the

Re: 403 Forbidden messages when saving items in django-admin

2013-10-07 Thread Alban Hertroys
On Sunday, October 6, 2013 8:24:20 PM UTC+2, Daniel Roseman wrote: > > Notice that this is the default Apache error message, not one for Django. > That strongly suggests that people are being redirected away from your > Django server to another, different one. Perhaps Django is running on a >

Re: logic problem

2013-10-07 Thread Leonardo Giordani
Are you sure that your DB contains only one entry with that name? Try printing it in the view you use to render that template and check the output of the development server. Cheers, Leo Leonardo Giordani Author of The Digital Cat My profile on About.me