Re: Possible bug Django 2.0 CreateView generic CBV

2017-12-29 Thread Etienne Robillard
Hi Steven, Could you put a "import pdb; pdb.set_trace()" somewhere in your code? This way it would be pretty easy to inspect where the code is breaking. Besides, why upgrading to Class-based-views if your previous Django 1.11 implementation was working fine? HTH Etienne Le 2017-12-28 à

Re: DRF JWT Token with Mobile

2017-12-29 Thread Avraham Serour
instead of: curl -X POST -d "mobile=1234567890" http://localhost:8000/api-token-auth/ could you just use: curl -X POST -d "username=1234567890" http://localhost:8000/api-token-auth/ In any case what's the use case here? This doesn't seem secure at all, to log in someone only using the username, e

404 for some matching urls too (Version 2)

2017-12-29 Thread Sundararajan Seshadri
I do not know the mistake I am likely to be committing. In Django Version 2, I have a feeling that URL matching fails whenever there are query variables. When I try to log into Admin module, the login screen comes. But when a 'next' query variable is attached, I get a 404. Similarly when I try

Possible bug: OutputWrapper: TypeError: write() argument must be str, not bytes

2017-12-29 Thread emi
Hello all! I'm new to the list and mostly new to Django. I am adding django-encrypted-model-fields to my Django project and one of the steps to install it is to generate a key using a ./manage.py command: $ ./manage.py generate_encryption_key When executing it, an error is raised: Traceback (mos

[SOS] Django-Oscar Front end(theme) replacement

2017-12-29 Thread Fred Grey
Hi, Does anybody use django-oscar to build a commerce website? I have done most of the things to make it online. But the default theme is ugly and not matched with the commodity's style. We are a startup company and no UXD for the website design right now. Is there any other websites I can ref

Re: Possible bug: OutputWrapper: TypeError: write() argument must be str, not bytes

2017-12-29 Thread pradam
hi, i think your trying to write bytes instead of str. please have look at below example it might help you: name = b'i_m byte bro' print(name.decode('utf-8')) // just decode the byte to str o/p: i_m byte bro On Fri, Dec 29, 2017 at 2:29 PM, emi wrote: > Hello all! > I'm new to the list and mo

Re: [SOS] Django-Oscar Front end(theme) replacement

2017-12-29 Thread Matemática A3K
On Fri, Dec 29, 2017 at 5:14 AM, Fred Grey wrote: > Hi, > Hi! > > Does anybody use django-oscar to build a commerce website? I have done > most of the things to make it online. But the default theme is ugly and not > matched with the commodity's style. > > We are a startup company and no UXD fo

Re: Possible bug: OutputWrapper: TypeError: write() argument must be str, not bytes

2017-12-29 Thread Matemática A3K
On Fri, Dec 29, 2017 at 5:59 AM, emi wrote: > Hello all! > I'm new to the list and mostly new to Django. > > I am adding django-encrypted-model-fields to my Django project and one of > the steps to install it is to generate a key using a ./manage.py command: > $ ./manage.py generate_encryption_ke

Re: 404 for some matching urls too (Version 2)

2017-12-29 Thread Matemática A3K
Please post your urls.py, this looks strange: admin/ [name='index'] > admin/ login/ [name='login'] > admin/ logout/ [name='logout'] > admin/ r/// [name='view_on_site'] > admin/ ^(?Prsi|auth)/$ [name='app_list'] > login/ [name='login'] > logout/ [name='logout'] > authissue [name='authissue'] > --

Re: Possible bug: OutputWrapper: TypeError: write() argument must be str, not bytes

2017-12-29 Thread Jani Tiainen
Hi, As pointed out problem is not Django but that third party package that tries to output data as bytes but Django expects to have string instead. First make sure that 3rd party app works with Django version you're using. If not you need to contact that 3rd party app developers to fix the actual

Migrate doen't recognize my apps to migrate

2017-12-29 Thread Fellipe Henrique
Hi all, I have these apps, on my django site: INSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', # erp apps: 'erp.apps.base', 'erp

Re: Migrate doen't recognize my apps to migrate

2017-12-29 Thread Jason
If you haven't made the migrations, then you don't have any to actually apply. You can use https://docs.djangoproject.com/en/2.0/ref/django-admin/#django-admin-showmigrations to show the migrations that have been created and those that have been applied -- You received this message because y

Re: 404 for some matching urls too (Version 2)

2017-12-29 Thread James Schneider
admin/ [name='index'] admin/ login/ [name='login'] admin/ logout/ [name='logout'] admin/ password_change/ [name='password_change'] admin/ password_change/done/ [name='password_change_done'] admin/ jsi18n/ [name='jsi18n'] admin/ r/// [name='view_on_site'] .. (corresponds to the tables defined) a

Re: Still having trouble with django-filebrowser

2017-12-29 Thread Mike Dewhirst
On 18/12/2017 8:23 PM, Etienne Robillard wrote: Looks likes this is using javascript. What does the javascript console says? Is the markup of the page valid HTML? The javascript is slightly different between dev on localhost and staging and I'm totally outta my depth :( In the section of

Re: Still having trouble with django-filebrowser

2017-12-29 Thread Etienne Robillard
Hey Mike, Please take a look at this: https://stackoverflow.com/questions/3231432/admin-field-fails-to-save-with-tinymce-and-filebrowser-in-django Best regards, Etienne Le 2017-12-29 à 17:30, Mike Dewhirst a écrit : On 18/12/2017 8:23 PM, Etienne Robillard wrote: Looks likes this is using

Re: Still having trouble with django-filebrowser

2017-12-29 Thread Mike Dewhirst
Etienne TINYMCE_FILEBROWSER = True Did the trick. Vous etes fantastique! :)) Mike On 30/12/2017 10:11 AM, Etienne Robillard wrote: Hey Mike, Please take a look at this: https://stackoverflow.com/questions/3231432/admin-field-fails-to-save-with-tinymce-and-filebrowser-in-django Best reg