Re: Django Admin should really support Twitter Bootsrap

2015-04-25 Thread Derek
I am a satisfied user of django-suit. Right now there is beta-testing going on of the upgrade from Bootstrap 2 to 3... On Wednesday, 15 April 2015 15:45:36 UTC+2, bobhaugen wrote: > > On Monday, April 13, 2015 at 5:16:40 PM UTC-5, Patrick Lemiuex wrote: >> >> It's about time, the django admin

Re: Django Admin should really support Twitter Bootsrap

2015-04-16 Thread Scot Hacker
On Monday, April 13, 2015 at 3:16:40 PM UTC-7, Patrick Lemiuex wrote: > > It's about time, the django admin tool should support twitter bootstrap > markups and styling. This is the third django project where I've had to > deal with custom form widgets because the admin tool supports kind of an

Re: Django Admin should really support Twitter Bootsrap

2015-04-15 Thread bobhaugen
On Monday, April 13, 2015 at 5:16:40 PM UTC-5, Patrick Lemiuex wrote: > > It's about time, the django admin tool should support twitter bootstrap > markups and styling. This is the third django project where I've had to > deal with custom form widgets because the admin tool supports kind of an

Re: Django Admin should really support Twitter Bootsrap

2015-04-14 Thread David Gleba
I am a novice here with Django. I am trying to understand your question more deeply. I agree with your ideas. I tried the following and it seemed to work OK, although I may not have tried all aspects. https://github.com/django-admin-bootstrapped/django-admin-bootstrapped Is this close to

Re: Django admin page display unnormal

2015-04-13 Thread aRkadeFR
Your static files are not served properly. Please, run the collectstatic command and see if the admin static files are copied. Check in your browser that the files media are served then. aRkadeFR On 04/13/2015 05:04 AM, zli wrote: It is my admin add user page

Re: Django Admin Page

2015-03-06 Thread Collin Anderson
Hi, That's odd. Maybe try updating django? It looks like you're using 1.8 pre-alpha from 3 months ago. Collin On Friday, February 20, 2015 at 1:40:03 AM UTC-5, Tim Co wrote: > > Hello, > > We are trying to run a local development server for our django python app. > We are able to connect to

Re: Django Admin Page

2015-03-06 Thread ebuild
Check django1.8 compatibility with python2.7 On Friday, February 20, 2015 at 7:40:03 AM UTC+1, Tim Co wrote: > > Hello, > > We are trying to run a local development server for our django python app. > We are able to connect to our localhost index and get the "It Worked!" > Dango page. However

Re: Django Admin UI Bug - 1.7.3

2015-01-18 Thread Timothy W. Cook
On Sun, Jan 18, 2015 at 5:35 PM, Collin Anderson wrote: > Hi, > > Rename your __unicode__ to __str__. Python 3 doesn't know what > "__unicode__" is. :) > > ​Yep, that did it.​ Interesting that it was working up until now and that my AJAX calls worked either way.

Re: Django Admin UI Bug - 1.7.3

2015-01-18 Thread Collin Anderson
Hi, Rename your __unicode__ to __str__. Python 3 doesn't know what "__unicode__" is. :) You say this works fine: >>> from ccdgen.models import DvBoolean,DvAny, Common, Project >>> pcts = DvBoolean.objects.all() >>> for p in pcts: ... print(p.prj_name.prj_name) But django is expecting this

Re: Django Admin UI Bug - 1.7.3

2015-01-18 Thread Timothy W. Cook
On Sat, Jan 17, 2015 at 11:49 AM, Collin Anderson wrote: > Hi, > > Did you also switch to Python 3? > ​Yes. Well, I didn't switch. I have been using Python 3 for quite some time. Even before it was officially supported. ​ > It doesn't seem to be using your __unicode__

Re: Django Admin UI Bug - 1.7.3

2015-01-17 Thread Collin Anderson
Hi, Did you also switch to Python 3? It doesn't seem to be using your __unicode__ method at all. If you query one of these Projects in manage.py shell, do they show the project name? Are you sure that the __unicode__ method is actually attached to your model? Also, FYI, to_field="prj_name"

Re: Django Admin UI Bug - 1.7.3

2015-01-16 Thread Timothy W. Cook
I should also mention that I have some AJAX calls for the same information and they still work fine. So I am quite certain it is in the Admin templates or the Admin properties definitions. On Fri, Jan 16, 2015 at 5:56 PM, Timothy W. Cook wrote: > Is this a bug or did I miss

Re: django-admin creates the views.py files in the wrong place!

2014-10-23 Thread Aliane Abdelouahab
oh! sorry :D i was dumb! how can i missed this! thank you again! -- 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 django-users+unsubscr...@googlegroups.com. To

Re: django-admin creates the views.py files in the wrong place!

2014-10-23 Thread Daniel Roseman
On Thursday, 23 October 2014 21:45:18 UTC+1, Aliane Abdelouahab wrote: > > Try the code like that, it will not work, > > now move the views.py from /rango to the initial directory where the is > the manage.py (/abdou) and it will work > Nope; that is the correct structure, as it is, with no need

Re: django-admin creates the views.py files in the wrong place!

2014-10-23 Thread Daniel Roseman
On Thursday, 23 October 2014 15:34:15 UTC+1, Aliane Abdelouahab wrote: > > i followed exactly by words the tutorial > > http://www.tangowithdjango.com/book17/chapters/setup.html#creating-a-django-application > and it seems the problem is about creating the double directory, and when > doing

Re: django-admin creates the views.py files in the wrong place!

2014-10-23 Thread Aliane Abdelouahab
i followed exactly by words the tutorial http://www.tangowithdjango.com/book17/chapters/setup.html#creating-a-django-application and it seems the problem is about creating the double directory, and when doing startapp it creates a directory parallel to the other one created? -- You received

Re: django-admin creates the views.py files in the wrong place!

2014-10-23 Thread Daniel Roseman
On Wednesday, 22 October 2014 22:05:07 UTC+1, Aliane Abdelouahab wrote: > > Hi, > Django 1.7 when a beginner runs the first tutorial, he has to change the > views.py file outside the app to the whole project itself. > i found this, >

Re: django admin interface - how to enable adding new entries to foreign key-linked dropdown menu?

2014-10-09 Thread Russell Keith-Magee
Hi Eliezer, The trick is to add a ModelAdmin for Exercise. The obvious consequence of this is that you'll get a "top level" menu option to add exercises. However, a side effect is that everywhere that you have a model with a foreign key to exercise (like in your Segment inline), you'll get a

Re: Django admin list sort error

2014-09-11 Thread Collin Anderson
Yes, it does sound like a bug. Can you reproduce it with a minimal project? -- 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

Re: Django admin list sort error

2014-09-08 Thread Derek
Colin Good suggestion, but I already have a stack of "extra" fields like this (for special needs e.g. calculated or reformatted fields). However, doing this for normal fields that Should Just Work seems like a real hack. Surely the answer is that the underlying SQL is not being generated

Re: Django admin list sort error

2014-09-05 Thread Collin Anderson
It guess it's pretty complicated, but it's possible to specify it kind of like this: class MyAdmin(admin.ModelAdmin): fields = ['name', 'theplace'] def theplace(self, obj): return obj.place.name theplace.admin_order_field = ['place__name'] -- You received this message

Re: Django admin list sort error

2014-09-05 Thread Derek
Sorry Colin, I have no idea what you mean. Where in the django admin settings would I specify this? AFAIK, the column names / labels / IDs are auto-generated by the admin and it attempts the sort when you click on the column heading. On 4 September 2014 21:19, Collin Anderson

Re: Django admin list sort error

2014-09-04 Thread Collin Anderson
try sorting by place__name instead. -- 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 django-users+unsubscr...@googlegroups.com. To post to this group, send email

Re: Django admin list sort error

2014-09-04 Thread Derek
Well, this is an "internal" project ... but a "translation" of some of the fields of some of the models would look something those below (NB this is a subset with just a few models - and any 'grammatical' errors are from the "translation" - the originals work perfectly in every respect except for

Re: Django admin list sort error

2014-09-04 Thread Collin Anderson
do you want to paste in your models? -- 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 django-users+unsubscr...@googlegroups.com. To post to this group, send

Re: Django admin list sort error

2014-09-04 Thread Derek
No one else? Strange... The closest related issue I could find"out there" relates to the way that the MySQLdb cursor returns its results i.e. with the tablename prefixes stripped off. So fields called 'name' or 'code' (that commonly appear in many tables) all now clash with each other. I

Re: Django admin can't display user detail view: 500 error

2014-08-30 Thread amarshall
Okay, I got everything working. I was totally over thinking things I think. I added the ADMINS variable in my settings to get a traceback and it seems a package(django-tastypie) I installed on my development side I forgot to install on the production side. Once I installed it, I migrated it's

Re: Django admin can't display user detail view: 500 error

2014-08-29 Thread amarshall
I see now that I think the best course of action is to get the traceback by adding the ADMINS settings. So I did that. Now I need to restart the uwsgi server process. Any suggestions on how to kind of brute force do that right now? I see on their site they suggest "uwsgi --reload

Re: Django admin can't display user detail view: 500 error

2014-08-29 Thread amarshall
I didn't have my uwsgi setup to log. So I did with this command : uwsgi --socket :8001 --wsgi-file wsgi.py --master --processes 5 --threads 2 --daemonize /var/log/uwsgi/lokalapp.log So I went to the site to reach the 500 error to see if anything updates and nothing is updated in the log file

Re: Django admin can't display user detail view: 500 error

2014-08-29 Thread amarshall
I'm pretty sure my ALLOWED_HOST is setup right to allow all url locations after the main domain. I have not setup the EMAIL to send me notifications upon 500 server error. Will do now. About to check my uwsgi log and post it as well -- You received this message because you are subscribed to

Re: Django admin can't display user detail view: 500 error

2014-08-29 Thread Collin Anderson
is your ALLOWED_HOSTS set correctly? it's also possible to set up ADMINS and email settings so you get an email with details about the server 500 error. Does your uWSGI log show any more info? -- You received this message because you are subscribed to the Google Groups "Django users" group.

Re: Django admin can't display user detail view: 500 error

2014-08-28 Thread Babatunde Akinyanmi
Hi Amarshall? We need more information. Give us the traceback On 29 Aug 2014 01:22, "amarshall" wrote: > I've deployed my django application using Nginx and uWSGI. > > In development I can login to my django admin-> users-> [username] and it > shows the users information.

Re: Django Admin DB Error only when trying to delete an inserted record delete.

2014-07-17 Thread G Z
Thanks, I am unable to solve this issue but im running it down. On Thursday, July 17, 2014 10:46:08 AM UTC-6, Michiel Overtoom wrote: > > > On Jul 16, 2014, at 23:14, G Z wrote: > > > So I'm still running in to issues using a prexisting database, ive > worked out almost all of the issues >

Re: Django Admin DB Error only when trying to delete an inserted record delete.

2014-07-17 Thread Michiel Overtoom
On Jul 16, 2014, at 23:14, G Z wrote: > So I'm still running in to issues using a prexisting database, ive worked out > almost all of the issues I'm following your posts with interest, since I will be writing a Django app soon which also has to use a pre-existing database. Greetings, --

Re: Django Admin DB Error only when trying to delete an inserted record delete.

2014-07-16 Thread G Z
> > upon further investigation I found that inspectdb on the production > database only will output a models.py for the django tables, I need it to > output it for the entire schema like it did on the development database, > to prevent unessecary changes the premissions of the django user are

Re: Django-admin set foreign key to Null for inlines selected item instead of delete

2014-07-16 Thread Aeh. ABID
This is not for my use case, it was about setting to null foreign key when selecting inline items to be deleted On Tuesday, July 15, 2014 1:38:07 PM UTC+1, ROHITH KUMAR Miryala wrote: > > > >> >> B-id=models.ForeignKey('B',on_delete=models.SET_NULL) >> > -- You received this message because

Re: Django-admin set foreign key to Null for inlines selected item instead of delete

2014-07-15 Thread ROHITH KUMAR Miryala
> > > B-id=models.ForeignKey('B',on_delete=models.SET_NULL) > -- 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 django-users+unsubscr...@googlegroups.com. To

Re: Django-admin set foreign key to Null for inlines selected item instead of delete

2014-07-14 Thread Aeh. ABID
Indeed introducing m2m relationship was just the solution for this case, now I have B form change with AB_B as Inlines tabular item. thanks a lot On Sunday, July 13, 2014 7:48:05 PM UTC+1, Aeh. ABID wrote: > > > > I Have a model AB that holds two foreign keys A_id and B_id. > > class

Re: Django-admin set foreign key to Null for inlines selected item instead of delete

2014-07-13 Thread Mike Dewhirst
On 14/07/2014 9:23 AM, Aeh. ABID wrote: i'm bit confused here, shouldn't ovverride delete() instead of save() ? and how to retrieve selected items ? Not really. You don't want to delete anything. You want to break a link. Making the foreign key field null will do that. It sounds like you

Re: Django-admin set foreign key to Null for inlines selected item instead of delete

2014-07-13 Thread Aeh. ABID
i'm bit confused here, shouldn't ovverride delete() instead of save() ? and how to retrieve selected items ? On Sunday, July 13, 2014 7:48:05 PM UTC+1, Aeh. ABID wrote: > > > > I Have a model AB that holds two foreign keys A_id and B_id. > > class AB(models.Model): > A_id =

Re: Django-admin set foreign key to Null for inlines selected item instead of delete

2014-07-13 Thread Mike Dewhirst
On 14/07/2014 4:48 AM, Aeh. ABID wrote: I Have a model AB that holds two foreign keys A_id and B_id. |class AB(models.Model): A_id= models.ForeignKey('A') B_id= models.ForeignKey('B') field_1= models.CharField(max_length=200, blank=True) field_2=

Re: [Django-admin] Popup for inline model

2014-07-06 Thread Aeh. ABID
Thanks for your reply. StackedInline would be cumbersome when we have more than two childs to edit, that is why having a detached window will help a lot. On Monday, July 7, 2014 12:18:49 AM UTC+1, Russell Keith-Magee wrote: > > Hi, > > This isn't a builtin feature. It might be possible to add

Re: [Django-admin] Popup for inline model

2014-07-06 Thread Russell Keith-Magee
Hi, This isn't a builtin feature. It might be possible to add as an extension in your own code, but I can't point you at a simple set of instructions for how to do this. If you've got a problem with the number of fields in your TabularInline causing horizontal scrolling, perhaps you might think

Re: Django Admin Login - Redirecting back to login page

2014-06-24 Thread Aaron Reabow
also try: LOGIN_REDIRECT_URL On Tuesday, 24 June 2014 16:55:21 UTC+2, Sergiy Khohlov wrote: > > Hello, > > Could you please paste your LOGIN_URL from your settings.py > > > > Many thanks, > > Serge > > > +380 636150445 > skype: skhohlov > > > On Tue, Jun 24, 2014 at 5:40 PM, Діма Ревуцький

Re: Django Admin Login - Redirecting back to login page

2014-06-24 Thread Sergiy Khohlov
Hello, Could you please paste your LOGIN_URL from your settings.py Many thanks, Serge +380 636150445 skype: skhohlov On Tue, Jun 24, 2014 at 5:40 PM, Діма Ревуцький wrote: > I had same problem > In settings remove SESSION_COOKIE_DOMAIN or set correct domain > >

Re: Django Admin Login - Redirecting back to login page

2014-06-24 Thread Діма Ревуцький
I had same problem In settings remove SESSION_COOKIE_DOMAIN or set correct domain понедельник, 6 июня 2011 г., 13:57:11 UTC+3 пользователь Aidan написал: > > I'm having trouble with the Django Admin. My login page appears ok at > http://127.0.0.1:8000/admin but when I try to login with a valid

Re: Django admin for public pages

2014-04-08 Thread Jorge Andrés Vergara Ebratt
Depending on the project, I've done projects entirely made of the admin On Apr 8, 2014 11:53 AM, "Andrew Pashkin" wrote: > I'm thinking about using django.contrib.admin for public facing pages. > On the one hand, seems like it is not recommended: > > It's not intended

Re: Django Admin Multiupload Field

2014-03-15 Thread Jonathan Querubina
Camilo, I can`t use inline (i tryied) because the user has to select file by file, not all the same time On Mar 15, 2014, at 1:58 PM, Camilo Torres wrote: > > On Saturday, March 15, 2014 11:18:05 AM UTC-4:30, Jonathan Querubina wrote: > how can i have a Multiupload

Re: Django Admin Multiupload Field

2014-03-15 Thread Camilo Torres
On Saturday, March 15, 2014 11:18:05 AM UTC-4:30, Jonathan Querubina wrote: > > how can i have a Multiupload Field on a Model for the Django Admin? > > I Found this: https://github.com/TND/django-files-widget > Hello, I don't fully understand your needs, but may be you can use inlines:

Re: Django Admin - search_fields + related fields

2014-02-21 Thread Camilo Torres
On Thursday, February 20, 2014 4:58:59 PM UTC-4:30, Ivan Goncalves wrote: > > I have these two models below: > > class business(models.Model): > name=models.CharField(max_length=40, blank=True, null=True) > > class phone(models.Model): > business=models.ForeignKey(business, >

Re: Django Admin Page not working

2014-02-12 Thread Puthi SUM
I have tried to do that already but it still no use. I am in Development mode, and according to Django's documentation, it should work without I have to do anything. Also thank for your answer. On Wednesday, February 12, 2014 4:19:50 PM UTC+7, Puthi SUM wrote: > > Hi Developers, > >I am new

Re: Django Admin Page not working

2014-02-12 Thread Roberto López López
_Probably_ you will have to execute: $ python manage.py collectstatic On 12. feb. 2014 10:19, Puthi SUM wrote: Hi Developers, I am new to Django App Development. My part-1 training is completed successfully. But when i go for part-2, my Admin page is not working properly. i.e., Admin

Re: Django admin broken after putting into production

2014-02-11 Thread bhudspeth60
Thank you .collectstatic did the trick... On Tuesday, February 11, 2014 2:39:59 PM UTC-7, Glyn Jackson wrote: > > Silly question, don't be offended, but have you run > collectstaticon > your production server? >>

Re: Django admin broken after putting into production

2014-02-11 Thread Glyn Jackson
> > Silly question, don't be offended, but have you run > collectstaticon > your production server? > -- You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: Django Admin - Duplicating and Filtering Many to Many fields in form

2014-01-17 Thread Ara Sivaneswaran
Wow, really nice way to look at it. I would have never thought about it this way! One little question, is it possible to have all the players already selected in the form? And the admin will remove players who were not part of the game? It's faster to remove 1 or 2 player instead of adding

Re: Django Admin - Duplicating and Filtering Many to Many fields in form

2014-01-17 Thread Tom Evans
On Fri, Jan 17, 2014 at 12:38 PM, Ara Sivaneswaran wrote: > Hey guys, > > > I am kind of stuck... > > This is the situation. I got a Match Model, a Player Model and a Team model. > > > Here is what models look like so far: > > > Match Model (simplified version) > >

Re: Django Admin Error: pop-up entry form

2013-11-20 Thread Derek
Solved. You need to add "u" to the unicode representation of your model's record. As in: def __unicode__(self): return u'%s' % self.fieldname This "error" does not show up in the normal admin page for the model, only when its accessed via the pop-up route. On Tuesday, 19

Re: Django admin - dinamically update through ajax choices of a ChoiceField in a ModelForm

2013-09-21 Thread C. Kirby
If you can, populate the widget with all available choices and then use your JS/AJAX to limit/hide some? On Saturday, September 21, 2013 6:32:03 PM UTC-5, luke lukes wrote: > > Hi everyone. > > I'm stucking with a ModelForm in the admin. I have two ChoicheField which > are populated with

Re: Django Admin CSS missing

2013-08-20 Thread Glenn Vulkers
And it's working, thanks alot! Op dinsdag 20 augustus 2013 18:35:35 UTC+2 schreef Glenn Vulkers: > > Hello everyone, > > I'm just reading throught djangobook.com where I came to Chapter 6 so > far. It's about The Django Admin. I installed the admin and such > but I notice that the CSS is

Re: Django Admin CSS missing

2013-08-20 Thread Alex Franco
There you have your problem and answer... uncomment these lines: # 'django.middleware.csrf.CsrfViewMiddleware', # 'django.contrib.sites', # 'django.contrib.staticfiles', # 'django.contrib.admin', Voilà! -- @jafrancov On Tuesday, August 20, 2013 11:59:28 AM UTC-5, Glenn Vulkers

Re: Django Admin CSS missing

2013-08-20 Thread Glenn Vulkers
I'm running manage.py runserver. Django version is: 1.5.1 in Settings.py I have this: MIDDLEWARE_CLASSES = ( 'django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', # 'django.middleware.csrf.CsrfViewMiddleware',

Re: Django Admin CSS missing

2013-08-20 Thread Alex Franco
Are not missing, but if you are following the djangobook you probably commented something in your settings file as you did on chapter 5, review the middleware, staticfiles and templeate loaders lines, the issue is probably there. On Tuesday, August 20, 2013 11:35:35 AM UTC-5, Glenn Vulkers

Re: Django Admin CSS missing

2013-08-20 Thread Bill Freeman
Not enough information. Django works fine with python2.7, so we would need to know, for example, which version of Django, how you installed it, whether you are using manage.py runserver or whether you are running behind Apache or something else, and what exactly you mean by "I installed the admin

Re: Django admin automatically adding slash to a URL field after update

2013-07-19 Thread ecasbas
Vicherot, thanks a lot for the response. The Django version which I am experimenting this issue is: >>> django.VERSION (1, 4, 2, 'final', 0) Regards Emilio El jueves, 4 de julio de 2013 13:24:27 UTC+2, vicherot escribió: > > I never have that issue, i use default setting of append_slash and

Re: Django admin automatically adding slash to a URL field after update

2013-07-04 Thread Rafael E. Ferrero
I never have that issue, i use default setting of append_slash and never have a problem with that. (version 1.3) 2013/7/4 Rafael E. Ferrero > What version of Django you use ?? > > > 2013/7/4 ecasbas > >> Hi, >> >> I have this issue wit the admin

Re: Django admin automatically adding slash to a URL field after update

2013-07-04 Thread Rafael E. Ferrero
What version of Django you use ?? 2013/7/4 ecasbas > Hi, > > I have this issue wit the admin interface: > > I try edit manually a register, I change some values and when I save the > data, the URL field, which I have no modifed, > become automatically with a slash append at

Re: django admin

2013-07-02 Thread Kakar Arunachal Service
Thanks a ton! :D On Tue, Jul 2, 2013 at 9:13 PM, Deepak Sharma wrote: > On Tue, Jul 2, 2013 at 9:05 PM, Kakar Arunachal Service > wrote: > > I am really confused here Can i change the admin url??? Or does it always > > have to be > >

Re: django admin

2013-07-02 Thread Deepak Sharma
On Tue, Jul 2, 2013 at 9:05 PM, Kakar Arunachal Service wrote: > I am really confused here Can i change the admin url??? Or does it always > have to be > "www.example.com/admin" ??? Hi, Yes, you can change this. At the place of www.example.com give your IP

Re: django admin

2013-07-02 Thread Jonathan Baker
Sure you can change it. Here is the relevant documentation as to how you included it in the first place: https://docs.djangoproject.com/en/dev/ref/contrib/admin/#hooking-adminsite-instances-into-your-urlconf Simply change 'admin' to something else. Jonathan On Tue, Jul 2, 2013 at 9:35 AM,

Re: Django-admin-tools unicode problem

2013-06-28 Thread Roberto López López
Hi, I can perfectly understand Portuguese, but it's not the case for many users of this mailing list. Please, stick to English... Cheers, Roberto On 06/28/2013 01:35 PM, Sandro Dutra wrote: > Como o Gilberto postou, pode haver um problema quando o teu editor de > textos salva o arquivo do

Re: Django-admin-tools unicode problem

2013-06-28 Thread Sandro Dutra
Como o Gilberto postou, pode haver um problema quando o teu editor de textos salva o arquivo do template, tente abrir este template pelo bloco de notas e ao 'salvar como' deve haver um campo lá embaixo para selecionar a 'Codificação', selecione UTF-8 e salve ou tente a configuração relativa no

Re: Django-admin-tools unicode problem

2013-06-27 Thread Jaimerson Leandro Amaro de Araújo
Cara, o problema é que a exceção tá sendo no template do aplicativo, que lê as informações do banco de dados. Alterar os arquivos do admin-tools é inviável em termos de portabilidade na hora do deploy. O que eu quero saber é se é possível mudar o encoding padrão desse app. Em quarta-feira, 26

Re: Django-admin-tools unicode problem

2013-06-27 Thread gilberto dos santos alves
tudo depende do seu editor de texto. por exemplo no windows em português do brasil normalmente é usado o cp1250 como padrão. mas na hora de salvar o seu arquivo você pode escolher salvá-lo como utf-8 (aí no início do código vai a correspondente diretiva) se preferir salvar em outro codepage

Re: Django-admin-tools unicode problem

2013-06-26 Thread Sandro Dutra
Jaimerson, ainda assim creio que você deva tentar adicionar ao topo de suas views e/ou dos módulos usados do admin-tools a linha: # -*- coding: utf-8 -*- ou # -*- coding: iso-8859-1 -*- Isso permitirá ao Python ler o arquivo no encoding definido. 2013/6/26 Jaimerson Leandro Amaro de Araújo

Re: Django-admin-tools unicode problem

2013-06-26 Thread Jaimerson Leandro Amaro de Araújo
Uh, I know it`s an encoding problem, I was hoping there was a way of changing default charset for that app. Em quarta-feira, 26 de junho de 2013 10h16min02s UTC-3, Odin escreveu: > > Think it's an encode problem. I never use this app but try to add this > line o top of your views file: > > #

Re: Django-admin-tools unicode problem

2013-06-26 Thread Sandro Dutra
Think it's an encode problem. I never use this app but try to add this line o top of your views file: # -*- coding: utf-8 -*- 2013/6/26 Jaimerson Leandro Amaro de Araújo > (I posted this on django-admin-tools mail list, but apparently there's no > one alive there) >

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: Django Admin - BooleanField issue

2013-04-27 Thread Marc R
That seems to have worked... I used 1 and 0 as the database is set for a tinyint to store the value (so needs to be 1 or 0). That said, django/python seems to figure that out when saving the value. Thanks; wouldn't have thought to try that. On Saturday, 27 April 2013 14:46:14 UTC-4, Andrew

Re: Django Admin - BooleanField issue

2013-04-27 Thread Andrew Boltachev
Hi. May be you need active = models.BooleanField(choices=((True,'yes'),(False,'no'))) ? - With regards, Andrei 2013/4/27 Marc R > I've setup a boolean field and get it to display correctly using this in > my model: > active =

Re: Django admin error : coercing to Unicode: need string or buffer, NoneType found

2013-04-24 Thread Wissal Khadrouf WBC
I went the hard way and changed all the null values untill I found out which one caused a problem Thanks 2013/4/24 Shawn Milochik > Ah, I missed that point. You could temporarily create an __init__ override > in your model and put the code there. > > -- > You received this

Re: Django admin error : coercing to Unicode: need string or buffer, NoneType found

2013-04-24 Thread Shawn Milochik
Ah, I missed that point. You could temporarily create an __init__ override in your model and put the code there. -- 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

Re: Django admin error : coercing to Unicode: need string or buffer, NoneType found

2013-04-24 Thread Wissal Khadrouf WBC
it's the admin view you're telling me to modify I'm sorry I'm faily new to django and I'm afraid I will do something wrong! 2013/4/24 Shawn Milochik > See what I said above about iterating through the fields in your view. Use > logging, print statements, or dump output to a

Re: Django admin error : coercing to Unicode: need string or buffer, NoneType found

2013-04-24 Thread Shawn Milochik
See what I said above about iterating through the fields in your view. Use logging, print statements, or dump output to a file. On Wed, Apr 24, 2013 at 10:39 AM, Wissal Khadrouf WBC < wissal.khadr...@wbc.ma> wrote: > That's what I was thinking,it's from the data > But I dont know wich field and

Re: Django admin error : coercing to Unicode: need string or buffer, NoneType found

2013-04-24 Thread Wissal Khadrouf WBC
That's what I was thinking,it's from the data But I dont know wich field and how to find out 2013/4/24 Shawn Milochik > Try iterating through your output in the view and look at field, > field.content, and if field.help_text. Somewhere you have a null value > which is None

Re: Django admin error : coercing to Unicode: need string or buffer, NoneType found

2013-04-24 Thread Shawn Milochik
Try iterating through your output in the view and look at field, field.content, and if field.help_text. Somewhere you have a null value which is None in Python. Since the traceback you posted (if it's complete) is all from Django's code and not yours, then the error must be in your data. -- You

Re: Django admin - Insert into another table

2013-03-05 Thread Bora Aymete
Looks promising. Thanks 5 Mart 2013 Salı 15:25:13 UTC+2 tarihinde Shawn Milochik yazdı: > > Sure. Just use the post-save signal: > > https://docs.djangoproject.com/en/1.5/ref/signals/#post-save > -- You received this message because you are subscribed to the Google Groups "Django users"

Re: Django admin - Insert into another table

2013-03-05 Thread Shawn Milochik
Sure. Just use the post-save signal: https://docs.djangoproject.com/en/1.5/ref/signals/#post-save -- 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

Re: django admin - changelist view: keep selected items on multiple pages

2013-01-23 Thread Pankaj Singh
Hey Luke, This is not related to link you mentioned. That link only talks about `How to customize the admin change list`. You can achieve what you want using cookies. Please have a look at similar question

Re: Django admin

2013-01-07 Thread Ben Carleton
- Original Message - > From: "elton santos" > To: django-users@googlegroups.com > Sent: Monday, January 7, 2013 12:07:28 PM > Subject: Django admin > Hi, > have some tutorial about django admin? i would customize him... > I wanna make a CRUD for study and

Re: Django admin

2013-01-07 Thread Amirouche
Héllo Elton, have some tutorial about django admin? i would customize him... > > I wanna make a CRUD for study and customize the admin's views and models... > > there some tutorial for this? > > * i'm using the version 1.4 > > Thanks! > I don't know any particular tutorial regarding the

Re: Django admin save error: get_db_prep_value() got an unexpected keyword argument 'connection'

2013-01-04 Thread Tom Evans
On Thu, Jan 3, 2013 at 1:51 PM, Glyn Jackson wrote: > I really struggling with my understanding of the following issue and how to > resolve > > > > > > When I try and save (using the Django standard admin interface) I get the >

Re: django admin site

2012-11-21 Thread Yogev Metzuyanim
Try to delete the db file and syncdb again On Tuesday, November 20, 2012 5:49:40 PM UTC+2, Valentin Rozescu wrote: > > I am going step by step in the tutorial "Writing your first Django app" ( > https://docs.djangoproject.com/en/dev/intro/tutorial01/) but in the part > 2, step creating admin

Re: django admin site

2012-11-21 Thread Valentin Rozescu
Yes, I did the steps as in the tutorial. In addition I create one more superuser as described. Thank you marți, 20 noiembrie 2012, 20:03:13 UTC+2, iñigo medina a scris: > > On Tue, 20 Nov 2012, Valentin Rozescu wrote: > > > > > > > I am going step by step in the tutorial "Writing your first

Re: django admin site

2012-11-21 Thread Valentin Rozescu
I am using Sqlite3 Thank you for your time -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/tukjIMgOCn4J. To post to this group, send email to

Re: django admin site

2012-11-20 Thread Yogev Metzuyanim
What database are you using? On Tuesday, November 20, 2012 5:49:40 PM UTC+2, Valentin Rozescu wrote: > > I am going step by step in the tutorial "Writing your first Django app" ( > https://docs.djangoproject.com/en/dev/intro/tutorial01/) but in the part > 2, step creating admin site, I'm blocked

Re: django admin site

2012-11-20 Thread I単igo Medina
On Tue, 20 Nov 2012, Valentin Rozescu wrote: I am going step by step in the tutorial "Writing your first Django app" (https://docs.djangoproject.com/en/dev/intro/tutorial01/) but in the part 2, step creating admin site, I'm blocked because of the fact that I cannot login to the

Re: Django admin - store small pieces of data

2012-10-11 Thread Matteo Suppo
> > I would like to add to panel admin new position only with edit view where > user can fill couple of text fields I don't understand what you're saying here, but for the rest it appears to me that maybe this could help you: http://www.djangopackages.com/packages/p/django-flatblocks/ On

Re: Django Admin asks password every operation

2012-10-07 Thread Stefano T
Actually i had the url matching that was matchin all the request and send it to home. the problem was that in the home view i accidentally copied a logout(request) into the view and obviusly every time it was logging out me. now it works. On Oct 6, 4:05 pm, Victor Rocha

Re: Django Admin asks password every operation

2012-10-06 Thread Victor Rocha
Depending on what exactly you want to accomplish to match the root to a url, I do as follow: url(r'^$', 'earth.views.Home'), However, it is sometimes good to have a default page if a request didnt match the url requested (I would use this as the very last rule, otherwise it will catch every

Re: Django Admin asks password every operation

2012-10-06 Thread Babatunde Akinyanmi
I suspect Bill's answer is what you are looking for as regards the url. However, it won't solve the password problem On 10/6/12, Stefano T wrote: > What i want is to match the root of my website with a url. > > On Saturday, October 6, 2012 12:53:08 AM UTC+2, ke1g

<    1   2   3   4   5   6   7   8   >