Admin doesn't show all entities

2014-09-18 Thread Dmitry Mikhaylov
I really don't know what might be wrong, but admin doesn't list some of my entities. There're two links in list header saying: 1736 results 2520 total When I click on "2520 total", it just show the same list with 1736 results. I can open objects change-forms using their ids though. A couple

Re: Possible bug introduced in Django 1.7 admin/docs?

2014-09-18 Thread Christopher Welborn
On 09/18/2014 10:50 PM, James Bennett wrote: > Are you using any third-party libraries which were installed as eggs? > It looks like I have several... Third-party extensions: django-extensions 1.3.3 django-solo 1.0.5 Non-extensions, but dependencies of extensions:

Re: Possible bug introduced in Django 1.7 admin/docs?

2014-09-18 Thread James Bennett
Are you using any third-party libraries which were installed as eggs? -- 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.

Re: Possible bug introduced in Django 1.7 admin/docs?

2014-09-18 Thread Christopher Welborn
On 09/18/2014 10:32 PM, I wrote: > Internal Server Error: /admin/doc/filters/ > "/home/cjwelborn/lib/python3.3/django/contrib/admindocs/views.py", line > 314, in load_all_installed_template_libraries > for p in os.listdir(os.path.dirname(upath(mod.__file__))) > AttributeError:

Possible bug introduced in Django 1.7 admin/docs?

2014-09-18 Thread Christopher Welborn
I was just playing around after upgrading from 1.6.6, I made small changes to my source to make it compatible. It was using the old WSGIHandler() style for wsgi.py, so I switched to get_wsgi_application(). I upgraded django-debug-toolbar, because it was incompatible. Everything on my site

django 1.7: inlines not deleted when save_formset is overridden

2014-09-18 Thread scott baker
I've modified an Admin with code similar to the following: def save_formset(self, request, form, formset, change): instances = formset.save(commit=False) for instance in instances: instance.user = request.user instance.save() formset.save_m2m()

Re: Help me: Django 1.6.4 + mod_wsgi Error

2014-09-18 Thread Yj Lee
I have same issue on my local computer. please help me, 2014년 7월 10일 목요일 오전 8시 18분 4초 UTC+9, Russell Keith-Magee 님의 말: > > Hi LongYuan, > > It's difficult to say for certain, but it looks to me like your Django > install is corrupted. The error you're seeing indicates that an import is >

Re: problem with a date between a form and database

2014-09-18 Thread swiesner
Timezones are hard. Is USE_TZ=True in your settings? I'd highly recommend starting on this page: https://docs.djangoproject.com/en/dev/topics/i18n/timezones/ Sid On Thursday, September 18, 2014 9:59:55 AM UTC-4, gh224391 wrote: > > hello all, > i have a form to get a date. But when i get

Re: display the elements from a database in a forms

2014-09-18 Thread Jonathan Pentecost
Are you using Django models? On Thursday, 18 September 2014 02:36:53 UTC+10, Devin Cky wrote: > > > 2 months ago yes !! please i need your help .. it's very importante for > me !!! > -- You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: Turn off migrations completely in Django 1.7

2014-09-18 Thread Nikolas Stevenson-Molnar
You could always set your models to managed=False https://docs.djangoproject.com/en/dev/ref/models/options/#managed _Nik On 9/18/2014 2:04 PM, Anthony Tuininga wrote: Hi, I just upgraded my test environment to Django 1.7 and immediately noticed that mgirations appear to be a requirement.

Re: Turn off migrations completely in Django 1.7

2014-09-18 Thread m1chael
Hi, I feel your pain, but I think you can utilize something with --fake I have been using databases for many, many years, and honestly- migrations definitely make sense. I am able to add new fields within a few seconds without having to do any extra work. It takes 2 minutes to learn how to use

Turn off migrations completely in Django 1.7

2014-09-18 Thread Anthony Tuininga
Hi, I just upgraded my test environment to Django 1.7 and immediately noticed that mgirations appear to be a requirement. Searching the documentation and the code itself seems to indicate that there is no way to disable it, either. Did I miss something? I don't need or want Django to create or

new to django data modeling for an application

2014-09-18 Thread dk
i did the django tutorial and to get a better grasp i decided to make a webpage. with 2 sections section 1 every day will let the user vote for a restaurant before 4pm section 2 from the restaurant with more votes will display the menu of the restaurant and each user can chose what they

Re: How/where to call setlocale

2014-09-18 Thread James Hargreaves
Hi Ulrich et al, Thanks again for your help. I'm having issues with your solution. It works when making a literal call to locale but Django is not using the correct locale for some reason. I added this to my application.wsgi: import locale locale.setlocale(locale.LC_ALL,

Can I use a calculated value for a key to a dictionary?

2014-09-18 Thread Joel Goldstick
I have some embed loops which iterate over league and division. I want to print the teams in each. I obviously can't do what i tried in line 19. Is there a way to calculate a key to a dictionary I want to iterate over? 14{% for l in leagues %} 15 {{l}} 16 {% for d in divisions %} 17 {{d}} 18

Re: Customise admin view

2014-09-18 Thread Salvatore DI DIO
That's great Thank you very very much Helton Le jeudi 18 septembre 2014 15:44:44 UTC+2, Helton Alves a écrit : > > I think this will resolve your problem. :D > > in admin, you use the get_queryset. > in this case return only items of user, you can change this for return the > items that user

unicode problems in admin interface

2014-09-18 Thread Jaap van Wingerde
I have suddenly unicode problems with de admin interface: "DjangoUnicodeDecodeError at /admin/art/photographextra/ 'ascii' codec can't decode byte 0xc3 in position 32: ordinal not in range(128). You passed in () ... Unicode error hint The string that could not be encoded/decoded was: l>Mus��e

problem with a date between a form and database

2014-09-18 Thread gerard
hello all, i have a form to get a date. But when i get object from the database, the database is not as expected, user type "18/09/2015", but after savin, i got: 17/09/2015 22:00 here is the code: #settings.py TIME_ZONE = 'Europe/Paris' #models.py class MyEvent(models.Model): dtstart =

Re: Customise admin view

2014-09-18 Thread Helton Alves
I think this will resolve your problem. :D in admin, you use the get_queryset. in this case return only items of user, you can change this for return the items that user have permission. class MyModelAdmin(admin.ModelAdmin): def queryset(self, request): qs = super(MyModelAdmin,

Django 1.6 Nginx with static files outside project folder

2014-09-18 Thread Florian Auer
Hello. It seems im stuck in the try to deploy my django project, consisting of multiple apps, to the production server at the point of serving the static files from the preferred directory. system details: - CentOS 6.5 - Django 1.6.4 - green Unicorn python server - Nginx webserver - python

Re: Customise admin view

2014-09-18 Thread Salvatore DI DIO
Hy Elton, In fact each image belongs to an album. Let us say I have three album ALB1 ALB2 ALB3 In the admin form, when I add an image I can attach it to either of each Albums or all the three if I want What I would like is show the album list for a particuliar user. For example Tom could only

Re: Simple task. Get request.META values listed on a page via template

2014-09-18 Thread Sergiy Khohlov
simple ways is using form and passing values to the template from the form. https://docs.djangoproject.com/en/dev/topics/forms/ Many thanks, Serge +380 636150445 skype: skhohlov On Mon, Sep 8, 2014 at 7:08 PM, Артём Мутерко wrote: > I need to list all values from

Re: Customise admin view

2014-09-18 Thread Helton Alves
I didn't understand very well. would you like the image of the tutorial? 2014-09-18 9:59 GMT+01:00 Salvatore DI DIO : > Hello, > > I am following a 'photo application' tutorial : > http://lightbird.net/dbe/photo.html > I have created several 'albums' to insert images

Customise admin view

2014-09-18 Thread Salvatore DI DIO
Hello, I am following a 'photo application' tutorial : http://lightbird.net/dbe/photo.html I have created several 'albums' to insert images in. I would like those albums beeing displayed in the admin panel according to each user or group Thank your for your help regards -- You received

unbalanced parenthesis

2014-09-18 Thread James Schneider
You likely have a regular expression that is trying to match using groups, and a '(' or ')' are missing or added as extras without a mate. http://lmgtfy.com/?q=Python+unbalanced+parenthesis=1 -James On Wednesday, September 17, 2014, ngangsia akumbo