Unable to create the django_migrations table (ORA-00907: missing right parenthesis)

2019-04-27 Thread tossouwisdom
Django 2.2.2 Cx_oracle 7.2 base Oracle 11g When I run the django migrate commande, i have error django.db.migrations.exceptions.MigrationSchemaMissing: Unable to create the django_migrations table (ORA-00907: missing right parenthesis) Operations to perform: Apply all migrations: admin, aut

Re: Unable to create the django_migrations table (ORA-00907: missing right parenthesis)

2019-04-27 Thread Joel Mathew
What's the error? Sincerely yours, Joel G Mathew On Sun, 28 Apr 2019 at 01:26, tossouwisdom wrote: > Django 2.2.2 > Cx_oracle 7.2 > base Oracle 11g > > When I run the django migrate commande, i have error > django.db.migrations.exceptions.MigrationSchemaMissing: Unable to create the > djan

Re: Unable to create the django_migrations table (ORA-00907: missing right parenthesis)

2019-04-27 Thread tossouwisdom
django.db.migrations.exceptions.MigrationSchemaMissing: Unable to create the django_migrations table (ORA-00907: missing right parenthesis) Le samedi 27 avril 2019 19:56:34 UTC, tossouwisdom a écrit : > > Django 2.2.2 > Cx_oracle 7.2 > base Oracle 11g > > When I run the django migrate commande

Question about form_valid: how to automatically set multiple fields when users input data via CreateView supported form?

2019-04-27 Thread Atsunori Kaneshige
I really appreciate if anybody could give me an advice about form_valid. Here is what I want to do. I am making a simple blog. I am making simple features: 1) only superuser can create articles. 2) logged-in users can make comments to articles. I followed along tutorials and mostly done. *But las

Re: Unable to create the django_migrations table (ORA-00907: missing right parenthesis)

2019-04-27 Thread Rob W
Can you send a copy of your models.py or a copy/paste of the class that shows the error? > On Apr 27, 2019, at 4:41 PM, tossouwisdom wrote: > > django.db.migrations.exceptions.MigrationSchemaMissing: Unable to create the > django_migrations table (ORA-00907: missing right parenthesis) > > L

Re: Question about form_valid: how to automatically set multiple fields when users input data via CreateView supported form?

2019-04-27 Thread Atsunori Kaneshige
Sorry, when I make a comment, I get this error. Any advice would be really appreciated! AttributeError at /articles/2/comment/ 'WSGIRequest' object has no attribute 'article' Request Method: POST Request URL: http://127.0.0.1:8000/articles/2/comment/ Django Version: 2.1.5 Exception Type: Attr

Re: Issues with editing Django files?

2019-04-27 Thread André Toscano
Hi Kevin, You shouldn't put your files inside the Program Files directory, it's protected by the system. Instead, you should create a directory (my suggestion) 'git' in your user's directory. Inside this directory you should create the directory that will organize your code. After that you need to

GraphQL and Django integration

2019-04-27 Thread Britto .
Hi, What are the coding challenges to integrate GraphQL with Django? GraphQL is not like REST it is protocol independent query language. How to handle mutations at Django? Regards Ab -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscr

Re: Question about form_valid: how to automatically set multiple fields when users input data via CreateView supported form?

2019-04-27 Thread Britto .
The best way to debug it is add a print function with dir function just before the error occurring line and see what are available attributes in request.POST object like this print(dir("", request.POST, "")) . Also without dir function will show what is available in POST. Look at th

Re: Question about form_valid: how to automatically set multiple fields when users input data via CreateView supported form?

2019-04-27 Thread Atsunori Kaneshige
Hi, Britto, Thank you very much for your reply! I tried form.instance.article = *self.*request.POST.get('article'), I still got an error shown below. RelatedObjectDoesNotExist at /articles/2/comment/ Comment has no article. Request Method: POST Request URL: http://127.0.0.1:8000/articles/2/c

Re: Question about form_valid: how to automatically set multiple fields when users input data via CreateView supported form?

2019-04-27 Thread Britto .
set form.instance.article = request.POST.get('article') and add article in fields too like fields = ('comment', 'article') it should work flawlessly. Regards Britto On Sun, 28 Apr 2019 at 09:30, Atsunori Kaneshige wrote: > Hi, Britto, > > Thank you very much for your reply! > I tried form.ins

Re: Unable to create the django_migrations table (ORA-00907: missing right parenthesis)

2019-04-27 Thread chirag soni
After executive these two commands: py manage.py makemigrations py manage.py migrate Still you face the problem then go to migrations folder and delete the associated(or all) migrations then re execute the above commands. On Sun, 28 Apr 2019, 01:26 tossouwisdom Django 2.2.2 > Cx_oracle 7.2 > ba