Re: get_available_name() got an unexpected keyword argument 'max_length'

2016-09-05 Thread Nelson Fajardo
Thks for the answer, i just founded. (django-storages) I updated Boto but i forgot that one! On Monday, September 5, 2016 at 10:28:43 PM UTC-5, James Schneider wrote: > > > > Hi, wich dependency do you update? I just get the same error, but i cant > find it! > > > > > > Based on Tim's response

Re: TypeError: view must be a callable or a list/tuple in the case of include(). in urls.py

2016-09-05 Thread James Schneider
On Sep 5, 2016 6:06 AM, "arun kumar" wrote: > > Hi, > >I'm working in Django 1.10 and I got the type error in the below file at this line " url(r'^$', views.dashboard, name = 'dashboard')," > > from django.conf.urls import include, url > from . import views > > urlpatterns = [ > #preview

Re: get_available_name() got an unexpected keyword argument 'max_length'

2016-09-05 Thread James Schneider
> Hi, wich dependency do you update? I just get the same error, but i cant find it! > > Based on Tim's response, any package that has to do with image or file handling would be a prime suspect. You may have a different package with the same issue, so the OP's answer may be different. -James --

Re: Serving very large pdf files with django

2016-09-05 Thread Gary Roach
Thanks you all for you contributions I have decided to break down the pdf files into individual jpg pages and serve them that way. I plan on putting each document in its own folder and then have the individual pages listed within the folder. I haven't worked out the exact retrieval scheme yet

Re: get_available_name() got an unexpected keyword argument 'max_length'

2016-09-05 Thread Nelson Fajardo
Hi, wich dependency do you update? I just get the same error, but i cant find it! thks, On Wednesday, August 31, 2016 at 6:20:49 AM UTC-5, manolo gomez wrote: > > I thought that I've checked all my dependecies, and effectively I forget > to update one of them. Now it's working, thank you very m

Re: Admin login returns 405 Not Allowed

2016-09-05 Thread Peter Laudenslager
PARTIALLY SOLVED!! The trouble seems to be with memcached. I commented out references to memcached in the nginx configuration, and things started working properly. I assume the admin page can be used with memcached, but something is wrong with my configuration. Maybe related to the post comma

Re: Admin login returns 405 Not Allowed

2016-09-05 Thread Peter Laudenslager
> > Here is the specific error logged by Django's debug logger: Exception while resolving variable 'is_popup' in template 'admin/login.html'. Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 907, in _resolve_lookup (bit, curre

Re: django.core.exceptions.FieldDoesNotExist but the field exists

2016-09-05 Thread Michal Petrucha
On Mon, Sep 05, 2016 at 08:44:55AM -0700, Stefano Tranquillini wrote: > Hello > > I've a problem syncing the db. > > I run the command: django-admin migrate > > System check identified some issues: > Operations to perform: > Synchronize unmigrated apps: oauth2_provider, > Apply all migratio

django.core.exceptions.FieldDoesNotExist but the field exists

2016-09-05 Thread Stefano Tranquillini
Hello I've a problem syncing the db. I run the command: django-admin migrate System check identified some issues: Operations to perform: Synchronize unmigrated apps: oauth2_provider, Apply all migrations: admin, Synchronizing apps without migrations: Creating tables... Running deferr

Re: TypeError: view must be a callable or a list/tuple in the case of include(). in urls.py

2016-09-05 Thread 'Abraham Varricatt' via Django users
Not sure what the issue is without more info about the error, but is the regular expression for that view correct? Assuming that you want to divert folks to the root of your site can you try the following? url(r'^/$', views.dashboard, name = 'dashboard') NOTE: if the error still persists, it w

Re: Django migrations taking all the memory on Django 1.9

2016-09-05 Thread andrea crotti
Thanks Marcus and others, this issue is in general getting worse and worse. We did some more investigation and we should probably just help out the work you are doing. Do you think it would be possible to apply these changes also on Django 1.9.9 or it has to be from master/1.10 only? I also tr

Re: Binding a ModelForm to an existing instance

2016-09-05 Thread Vadim Serdiuk
Hi Carlos. At first you should get an article, then put it to the form via instance parameter. If article is not found, instance is None. Than if form is valid, method 'save' creates new object or updates old one. if request.method == 'POST': try: article = Article.objects.get(url=

Re: Blank field object just for headings in form object

2016-09-05 Thread Vadim Serdiuk
Ma I guess you should look at fieldsets https://docs.djangoproject.com/en/1.10/ref/contrib/admin/#django.contrib.admin.ModelAdmin.fieldsets воскресенье, 4 сентября 2016 г., 20:34:52 UTC+3 пользователь Shane Fagan написал: > > Hi, > > I asked this question on Stackoverflow but didn't get any ans

Re: how to design URL pattern to get the field value using request.query_params.get in the view

2016-09-05 Thread Siddharth Ghumre
If I understand it correctly, for this view your url must correspond to http://www.mysite.com/xyz?year=2015 Here as per standard url protocol, anything you pass after the "?" (question mark) is passed as a request.query_params to the views. Hope this helps. Sid On Sun, Sep 4, 2016 at 10:03 PM,

TypeError: view must be a callable or a list/tuple in the case of include(). in urls.py

2016-09-05 Thread arun kumar
Hi, I'm working in Django 1.10 and I got the type error in the below file at this line "* url(r'^$', views.dashboard, name = 'dashboard'),*" *from django.conf.urls import include, url* *from . import views* *urlpatterns = [* *#preview login view* *#url(r'^login/$',views.user_login,

Re: Blank field object just for headings in form object

2016-09-05 Thread ludovic coues
do you mind to share the model holding the questions created in admin ? 2016-09-04 19:33 GMT+02:00 Shane Fagan : > Hi, > > I asked this question on Stackoverflow but didn't get any answers so > hopefully someone can give me an answer here. The Stackoverflow is > http://stackoverflow.com/questions/