Admin issues with inlines

2015-09-24 Thread Luca Corti
Hello, I have an issue with the admin and inlines for related models. When hitting save on a model editing page I get this traceback: Traceback (most recent call last): File "lib/python2.7/site-packages/django/core/handlers/base.py", line 132, in get_response response = wrapped_callback(r

Re: Treebeard admin issues: Fieldsets break code...

2011-12-20 Thread Micky Hulse
On Tue, Dec 20, 2011 at 5:42 PM, Micky Hulse wrote: > Traceback: > Sorry, moved here: Let me know if I can provide more trace info. Thanks! -- You received this message because you are subscribed to the Google Groups "Django users" gro

Treebeard admin issues: Fieldsets break code...

2011-12-20 Thread Micky Hulse
Hello, I am building a simple flat pages app and I am running into problems using Treebeard. For those not familiar with Treebeard: Treebeard example app: Ok, here's my code:

Re: How do I troubleshoot mod_wsgi 404 admin issues

2010-10-01 Thread Bill Freeman
And thank you for the pointer to the modwsgi debugging page. On Fri, Oct 1, 2010 at 12:39 PM, dclaar wrote: > Just as a follow-up, > http://code.google.com/p/modwsgi/wiki/DebuggingTechniques#Python_Interactive_Debugger > was pretty helpful. In the end, it turned out to be one of those > incredib

Re: How do I troubleshoot mod_wsgi 404 admin issues

2010-10-01 Thread dclaar
Just as a follow-up, http://code.google.com/p/modwsgi/wiki/DebuggingTechniques#Python_Interactive_Debugger was pretty helpful. In the end, it turned out to be one of those incredibly frustrating Regular Expression things, where the fix was to add a "^" anchor to a single RE. Without an “^” anchor

Re: How do I troubleshoot mod_wsgi 404 admin issues

2010-09-16 Thread Bill Freeman
Well, you have to hope that behavior under the development server gives you a clue where to put the prints, or breakpoints. You might find yourself patching a piece of middleware to look for the troublesome path and only doing a set_trace() for it. Then you can single step your way into the url d

Re: How do I troubleshoot mod_wsgi 404 admin issues

2010-09-16 Thread dclaar
Actually, DEBUG *is* on in the production instance. And yet, all I get is the "No Testbeds match..." message, which was a bit surprising to me. Without DEBUG, I just get a 404 not found. I'll try the clone idea. The problem I have is: Where do I put the print statements? The admin stuff is automagi

Re: How do I troubleshoot mod_wsgi 404 admin issues

2010-09-16 Thread Bill Freeman
I think that I'd start by making a clone, on some development box, run using the development server, but with SUB_SITE='perf/'. The removes the most glaring difference between your development and production versions. If it fails there you have full recourse to print statements and pdb. That said

How do I troubleshoot mod_wsgi 404 admin issues

2010-09-15 Thread dclaar
I'm having a problem where admin of my models works fine in the development server, but fails in production, where I'm using mod_wsgi. Here's the relevant parts of my urls.py: from django.conf.urls.defaults import * from django.contrib import admin admin.autodiscover() from django.conf import se

Admin: issues in saving an object in popup

2010-05-28 Thread donato.gr
In the Admin application I can create related objects 'on the fly' in a popup (e.g. when changing a User I can create Groups by pressing the green 'plus' next to the Group list): this is done adding '_popup=1' to the url used in the popup (e.g. "/admin/auth/group/add/?_popup=1"). The 'Save' button

Re: Admin issues

2010-04-12 Thread Karen Tracey
On Mon, Apr 12, 2010 at 4:41 AM, Sheena wrote: > Still no luck... > I've run syncdb and I can talk to my db through the interpreter easily > so I don't think there's a problem with that. > When i log in i get add and change options for Groups, Users, Comments > and Sites but not for anything rela

Re: Admin issues

2010-04-12 Thread Sheena
Still no luck... I've run syncdb and I can talk to my db through the interpreter easily so I don't think there's a problem with that. When i log in i get add and change options for Groups, Users, Comments and Sites but not for anything relating to my application (as created in chapter 5 of the Djan

Re: Admin issues

2010-04-09 Thread Steven Elliott Jr
Have you looked at your db? are the tables there that you wrote in your models. Did you run python manage.py syncdb and did you see verification that your tables were created? If you want to see that the sql is being created run python manage.py sqlall app_name to make sure its generating the

Re: Admin issues

2010-04-09 Thread backdoc
This may be bad advice. But, since I'm a newbie myself running in a non-production environment, what I do is restart Apache after making changes to my model.py or settings.py. It might be worth restarting your web server, if you can. I figure there's a better approach. I just haven't gotten far

Re: Admin issues

2010-04-09 Thread Karen Tracey
On Fri, Apr 9, 2010 at 1:23 PM, Sheena wrote: > I uncommented 'django.contrib.sessions' to no avail, and everything > else is correct. > Did you run manage.py syncdb after uncommenting sessions? > I'm not getting any error messages at all, I'm just not given the > option to do anything with m

Re: Admin issues

2010-04-09 Thread Sheena
I uncommented 'django.contrib.sessions' to no avail, and everything else is correct. I'm not getting any error messages at all, I'm just not given the option to do anything with my tables from the admin site. I've gone through three different tutorials on it and they all say the same thing so it d

Re: Admin issues

2010-04-09 Thread Steven Elliott Jr
Uncomment: #'django.contrib.sessions', make sure to import admin from django.contrib and turn admin.autodiscover() and yes, error messages would be helpful... if any. On Apr 9, 2010, at 10:32 AM, Stuart wrote: > What you have looks about right. What result are you getting? An error > message?

Re: Admin issues

2010-04-09 Thread Stuart
What you have looks about right. What result are you getting? An error message? --Stuart On Apr 9, 7:44 am, Sheena wrote: > Hey hey. I'm a little new to Django so I've been following through the > Django Book v2 and I'm having trouble adding my models to the admin > site. I'm pretty sure I've f

Re: Admin issues

2010-04-09 Thread Steven Elliott Jr
@Sheena, sorry -- I didnt read all of your email -- I think if you've got it all in admin.py make sure you're importing admin from django.contrib. To activate the admin interface though you need to do: 1. Add 'django.contrib.admin' to the INSTALLED_APPS setting (which you did) 2. Make sure INST

Re: Admin issues

2010-04-09 Thread Steven Elliott Jr
In your urls. py make sure you have: from django.contrib import admin admin.autodiscover() and that you've uncommented the (r'^admin/', include(admin.site.urls)), in the tuple: urlpatterns = patterns. On Apr 9, 2010, at 8:44 AM, Sheena wrote: > Hey hey. I'm a little new to Django so I've bee

Admin issues

2010-04-09 Thread Sheena
Hey hey. I'm a little new to Django so I've been following through the Django Book v2 and I'm having trouble adding my models to the admin site. I'm pretty sure I've followed instructions correctly, I've also tried following some random advice I found to no avail. Any help would be greatly apprecia

Re: Templatetags and admin issues

2009-09-29 Thread Mario
CalDan, I had the same exact problem yesterday. I googled it and found some useful links, but no definitive answer. Anyway, since the error was in the dev environment, I decided to wipe-out django and re-install it from the trunk. It actually solved my problem. Before deleting django make sure

Templatetags and admin issues

2009-09-28 Thread CALdan
'adminmedia' is not a valid tag library: Could not load template library from django.templatetags.adminmedia, No module named adminmedia Hi! I'm getting the above error message when I try to access the admin module of Django. I also seem to be having a problem where django is only looking in si

Re: strip_tags in django admin issues

2009-01-07 Thread ChrisL
Alex - you are a legend. That's functioning perfectly. I've moved the import line to the start of the file, but other than that used your code and it's working a treat. Thanks for the swift help Alex, and also Karen: together you've clarified Django very clearly for me. On Jan 6, 6:01 pm, "Alex

strip_tags in django admin issues

2009-01-06 Thread ChrisL
Hi everyone, Been bashing against this one for a while now and am keen for suggestions. I'm trying to apply custom validation to forms within Django's default admin. First up, I want to strip out all html from a Title field. Following the official documentation I have developed this: ---

Re: strip_tags in django admin issues

2009-01-06 Thread Karen Tracey
On Tue, Jan 6, 2009 at 12:14 PM, ChrisL <1angryc...@googlemail.com>wrote: > > Hi everyone, > > Been bashing against this one for a while now and am keen for > suggestions. I'm trying to apply custom validation to forms within > Django's default admin. First up, I want to strip out all html fro

Re: strip_tags in django admin issues

2009-01-06 Thread Alex Koshelev
Form class really doesn't have `strip_tags` method. I think you are interested in `strip_tags` functon from `django.utils.html`(and your comment says the same). So your method may look like this: def clean_title(self): from django.utils.html import strip_tags

Re: Admin issues

2006-11-09 Thread Picio
> Do I Have to use a custom manipulator? > > Thanks in advance. > Picio > Sorry I want to say CUSTOM MANAGER :( Picio --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

Admin issues

2006-11-09 Thread Picio
Hello, I have this model: class operazione(models.Model): descrizione = models.TextField() data = models.DateField('giorno') ore_uomo = models.FloatField(max_digits=2, decimal_places=1) progetto = models.ForeignKey(progetto) tipologia = models.ForeignKey(ti

Re: Making a Field Optional in Admin, Admin Issues

2006-02-27 Thread Wilson Miner
> I also created a super user via the admin GUI and this is not working > -- the super user cannot log in!!! Make sure the user is set to "staff" as well. The "staff" setting allows the user to log in, the "superuser" setting gives them access to all objects in the system. --~--~-~--~---

Re: Making a Field Optional in Admin, Admin Issues

2006-02-26 Thread hsitz
I think the 'core=true' option is used when you're defining a lookup field that is to be edited on another object's page. In the model api docs it says that 'blank = True' is the option you want to use to make entry optional, otherwise field is required to be entered, i.e., non-blank: http://www.

Making a Field Optional in Admin, Admin Issues

2006-02-26 Thread [EMAIL PROTECTED]
It seem that all the fields defined in a model turn up as required in the Admin. I would like to make a field optional in the admin. I tried "... (core=False)" ,but this does not seem to work. I also created a super user via the admin GUI and this is not working -- the super user cannot log in!