Best of /r/Python 2017
This is our Best of 2017 thread.
Submit things that you loved about /r/Python this year. It can be people, posts, comments, or whatever you want, as long as it is something that is in this subreddit.
Going to keep this post stickied until January 2nd, then hand out some gold to the people that the votes tell us are the best!
Merry Christmas everyone!
/r/Python
https://redd.it/7lyxpw
This is our Best of 2017 thread.
Submit things that you loved about /r/Python this year. It can be people, posts, comments, or whatever you want, as long as it is something that is in this subreddit.
Going to keep this post stickied until January 2nd, then hand out some gold to the people that the votes tell us are the best!
Merry Christmas everyone!
/r/Python
https://redd.it/7lyxpw
reddit
Best of /r/Python 2017 • r/Python
This is our Best of 2017 thread. Submit things that you loved about /r/Python this year. It can be people, posts, comments, or whatever you...
Jupyter Auto Starting in Atom Terminal
Not sure if this is the right place to post this but I thought I'd try.
Whenever I run the terminal in atom, it automatically starts a jupyter notebook. Not sure why this happens but its really annoying.
I also opened just a terminal window directly. It opened fine but this was the second line in the window:
env: jupyter-notebook: No such file or directory
Not sure what's going on here... Any help would be appreciated!
/r/Python
https://redd.it/7lz9rm
Not sure if this is the right place to post this but I thought I'd try.
Whenever I run the terminal in atom, it automatically starts a jupyter notebook. Not sure why this happens but its really annoying.
I also opened just a terminal window directly. It opened fine but this was the second line in the window:
env: jupyter-notebook: No such file or directory
Not sure what's going on here... Any help would be appreciated!
/r/Python
https://redd.it/7lz9rm
reddit
Jupyter Auto Starting in Atom Terminal • r/Python
Not sure if this is the right place to post this but I thought I'd try. Whenever I run the terminal in atom, it automatically starts a jupyter...
How to read CSV file in Python
https://www.alexkras.com/how-to-read-csv-file-in-python/
/r/Python
https://redd.it/7m0164
https://www.alexkras.com/how-to-read-csv-file-in-python/
/r/Python
https://redd.it/7m0164
alexkras.com
How to read CSV file in Python
Let’s say we have the following CSV file, named . You can download this file here. The first method demonstrated in Python docs would read the file as follows: Open the file Create a CSV reader Skip…
context in class-based views
So I recently switched to class based views, and found this code to pass in additional context to template:
class DetailView(generic.DetailView):
model = Language
template_name = 'languages/detail.html'
def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs)
context['year'] = Details.objects.filter(year=2016)
return context
However, I fail to be able to display values/the variable in the HTML. How do i go about this in template.html?
/r/django
https://redd.it/7m01au
So I recently switched to class based views, and found this code to pass in additional context to template:
class DetailView(generic.DetailView):
model = Language
template_name = 'languages/detail.html'
def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs)
context['year'] = Details.objects.filter(year=2016)
return context
However, I fail to be able to display values/the variable in the HTML. How do i go about this in template.html?
/r/django
https://redd.it/7m01au
reddit
context in class-based views • r/django
So I recently switched to class based views, and found this code to pass in additional context to template: class...
[News] New NVIDIA EULA prohibits Deep Learning on GeForce GPUs in data centers.
According to German tech magazine golem.de, the new NVIDIA EULA prohibits Deep Learning applications to be run on GeForce GPUs.
Sources:
https://www.golem.de/news/treiber-eula-nvidia-untersagt-deep-learning-auf-geforces-1712-131848.html
http://www.nvidia.com/content/DriverDownload-March2009/licence.php?lang=us&type=GeForce
The EULA states:
"No Datacenter Deployment. The SOFTWARE is not licensed for datacenter deployment, except that blockchain processing in a datacenter is permitted."
EDIT: Found an English article: https://wirelesswire.jp/2017/12/62708/
/r/MachineLearning
https://redd.it/7ly5gi
According to German tech magazine golem.de, the new NVIDIA EULA prohibits Deep Learning applications to be run on GeForce GPUs.
Sources:
https://www.golem.de/news/treiber-eula-nvidia-untersagt-deep-learning-auf-geforces-1712-131848.html
http://www.nvidia.com/content/DriverDownload-March2009/licence.php?lang=us&type=GeForce
The EULA states:
"No Datacenter Deployment. The SOFTWARE is not licensed for datacenter deployment, except that blockchain processing in a datacenter is permitted."
EDIT: Found an English article: https://wirelesswire.jp/2017/12/62708/
/r/MachineLearning
https://redd.it/7ly5gi
Golem.de
Nvidia untersagt Geforces in Rechenzentren
Wer eine Geforce oder Titan verwendet, darf diese Nvidia-Karten der aktualisierten Endbenutzer-Lizenzvereinbarung zufolge nicht mehr in Rechenzentren, etwa für Deep Learning,
An example of Django project with login, registration, password change, log out, and password reset functionality [UPDATE 3.0]
https://www.reddit.com/r/django/comments/7kwy9w/an_example_of_django_project_with_login/
/r/djangolearning
https://redd.it/7m0yus
https://www.reddit.com/r/django/comments/7kwy9w/an_example_of_django_project_with_login/
/r/djangolearning
https://redd.it/7m0yus
reddit
An example of Django project with login, registration,... • r/django
Links: - Repository: https://github.com/egorsmkv/simple-django-login-and-register - Previous post about 2.0 version:...
Django's autoreload function is unusably slow
Hello.
I have never had this problem in the past, but I am starting a new project and Django's autoreload feature (where it restarts the server after a code change) has been ridiculously slow (15 seconds - never). I am using WSL. I think this is something new with Django 2.0.
/r/django
https://redd.it/7m0gqu
Hello.
I have never had this problem in the past, but I am starting a new project and Django's autoreload feature (where it restarts the server after a code change) has been ridiculously slow (15 seconds - never). I am using WSL. I think this is something new with Django 2.0.
/r/django
https://redd.it/7m0gqu
reddit
Django's autoreload function is unusably slow • r/django
Hello. I have never had this problem in the past, but I am starting a new project and Django's autoreload feature (where it restarts the server...
Python Programming Tutorial File handling part 18
https://www.youtube.com/attribution_link?a=-oXb0WRNZas&u=%2Fwatch%3Fv%3DE24pt9bE-NM%26feature%3Dshare
/r/Python
https://redd.it/7m117q
https://www.youtube.com/attribution_link?a=-oXb0WRNZas&u=%2Fwatch%3Fv%3DE24pt9bE-NM%26feature%3Dshare
/r/Python
https://redd.it/7m117q
YouTube
Python Programming Tutorial File handling part 18
In this python tutorial cloudyrathor expain about file handling in python iin easy way. this tutorial explain how to open the file in read,write and readwrit...
Open-source cryptocurrency portfolio manager written in Flask!
https://github.com/anfederico/cryptoview
/r/Python
https://redd.it/7m18d0
https://github.com/anfederico/cryptoview
/r/Python
https://redd.it/7m18d0
GitHub
GitHub - anfederico/cryptoview: Elegant portfolio management for multi-exchange traders
Elegant portfolio management for multi-exchange traders - GitHub - anfederico/cryptoview: Elegant portfolio management for multi-exchange traders
Wishing merry Christmas using Python Turtle Script
http://thepythondjango.com/python-script-6-wishing-merry-christmas-using-python-turtle/
/r/django
https://redd.it/7m62t9
http://thepythondjango.com/python-script-6-wishing-merry-christmas-using-python-turtle/
/r/django
https://redd.it/7m62t9
The Python Django
Python Script 6: Wishing Merry Christmas using Python Turtle - The Python Django
Python script to wish merry Christmas using python turtle. Using Python Turtle module to wish merry Christmas to your friends.
Django Rest API - writing to FK based
I have two models as below:
class University(models.Model):
name = models.CharField(max_length=50)
class Meta:
verbose_name = "University"
verbose_name_plural = "Universities"
def __str__(self):
return self.name
def __unicode__(self):
return self.name
class Student(models.Model):
first_name = models.CharField(max_length=50)
last_name = models.CharField(max_length=50)
university = models.ForeignKey(University, on_delete = models.SET_NULL, null = True)
class Meta:
verbose_name = "Student"
verbose_name_plural = "Students"
def __str__(self):
return '%s %s' % (self.first_name, self.last_name)
def __unicode__(self):
return '%s %s' % (self.first_name, self.last_name)
class UniversitySerializer(serializers.ModelSerializer):
class Meta:
model = University
fields = '__all__'
class StudentSerializer(serializers.ModelSerializer):
university = serializers.SlugRelatedField(slug_field = 'name', queryset = University.objects.all())
class Meta:
model = Student
fields = '__all__'
I want to be able to access the forms that are generated by the browsable API in angularJS or any of the front end frameworks.
Can someone please nudge me into the right direction?
It's something most likely very simple however, I am lost as I am very new to this.
Many thanks in advance
/r/djangolearning
https://redd.it/7lw5xb
I have two models as below:
class University(models.Model):
name = models.CharField(max_length=50)
class Meta:
verbose_name = "University"
verbose_name_plural = "Universities"
def __str__(self):
return self.name
def __unicode__(self):
return self.name
class Student(models.Model):
first_name = models.CharField(max_length=50)
last_name = models.CharField(max_length=50)
university = models.ForeignKey(University, on_delete = models.SET_NULL, null = True)
class Meta:
verbose_name = "Student"
verbose_name_plural = "Students"
def __str__(self):
return '%s %s' % (self.first_name, self.last_name)
def __unicode__(self):
return '%s %s' % (self.first_name, self.last_name)
class UniversitySerializer(serializers.ModelSerializer):
class Meta:
model = University
fields = '__all__'
class StudentSerializer(serializers.ModelSerializer):
university = serializers.SlugRelatedField(slug_field = 'name', queryset = University.objects.all())
class Meta:
model = Student
fields = '__all__'
I want to be able to access the forms that are generated by the browsable API in angularJS or any of the front end frameworks.
Can someone please nudge me into the right direction?
It's something most likely very simple however, I am lost as I am very new to this.
Many thanks in advance
/r/djangolearning
https://redd.it/7lw5xb
reddit
Django Rest API - writing to FK based • r/djangolearning
I have two models as below: class University(models.Model): name = models.CharField(max_length=50) class Meta: verbose_name =...
Any idea on how to implement forest with Function based views? (beginner here)
I want to implement formset to add manytomanyfield in one class table. how can i achieve it? I [found one](https://medium.com/@adandan01/django-inline-formsets-example-mybook-420cc4b6225d) but it is using class based views, and i don't understand it yet.
can you help me here?
/r/djangolearning
https://redd.it/7lv0um
I want to implement formset to add manytomanyfield in one class table. how can i achieve it? I [found one](https://medium.com/@adandan01/django-inline-formsets-example-mybook-420cc4b6225d) but it is using class based views, and i don't understand it yet.
can you help me here?
/r/djangolearning
https://redd.it/7lv0um
Medium
Django Inline formsets example: mybook
Recently I needed to use django formset for a work project. Django formset allows you to edit a collection of the same forms on the same…
Anyone have any tricks to understanding and using classes in Python? I keep writing functions, instead. Why should I start using classes?
/r/Python
https://redd.it/7m4hlq
/r/Python
https://redd.it/7m4hlq
reddit
Anyone have any tricks to understanding and using... • r/Python
138 points and 54 comments so far on reddit
request.url
I am trying to get the url using request.url. It prints out
http://127.0.0.1:5058/blah/blah
But my url has
localhost/blah/blah
How can I get localhost/blah/blah and not 127.0.0.1
/r/flask
https://redd.it/7m7lhm
I am trying to get the url using request.url. It prints out
http://127.0.0.1:5058/blah/blah
But my url has
localhost/blah/blah
How can I get localhost/blah/blah and not 127.0.0.1
/r/flask
https://redd.it/7m7lhm
reddit
request.url • r/flask
I am trying to get the url using request.url. It prints out http://127.0.0.1:5058/blah/blah But my url has ...
How to use StreamField in Wagtail CMS
https://blog.michaelyin.info/2017/12/25/how-use-streamfield-wagtail/
/r/django
https://redd.it/7m7rm6
https://blog.michaelyin.info/2017/12/25/how-use-streamfield-wagtail/
/r/django
https://redd.it/7m7rm6
blog.michaelyin.info
Wagtail Tutorial #11: How to use StreamField in Wagtail
In this tutorial, I talked about the detail of Wagtail StreamField feature, it is a brand new and powerful solution in CMS world. Its content block model make it super easy to be extended to fit your demand.
Any Django Expert I can have a chat with?
I have been making websites with Django for almost a year now, and needed a professional ~~mentor~~ to talk to.
if you can help or are free, please comment or message me.
/r/djangolearning
https://redd.it/7m7xlb
I have been making websites with Django for almost a year now, and needed a professional ~~mentor~~ to talk to.
if you can help or are free, please comment or message me.
/r/djangolearning
https://redd.it/7m7xlb
reddit
Any Django Expert I can have a chat with? • r/djangolearning
I have been making websites with Django for almost a year now, and needed a professional ~~mentor~~ to talk to. if you can help or are free,...
At my wits end debugging this SQL syntax error
I'm making a web application in Django, using a MySQL server for the database, and I keep getting a message that I have an error in my SQL syntax. I'm not writing any SQL queries. Django is doing that for me. I tried recreating the migration files and database, and I still get the same error, so I figure there must be an error in my models.py file, but I can't find it. The crazy part is, I'm working with a commit from a few days ago, and I don't remember getting this error then.
Does anyone know what I might be doing wrong?
Here's my repository on GitHub:
https://github.com/WolfElkan/hst3
And here's the error I'm getting, along with the full traceback:
Applying contenttypes.0001_initial... OK
Applying auth.0001_initial... OK
Applying admin.0001_initial... OK
Applying admin.0002_logentry_remove_auto_add... OK
Applying contenttypes.0002_remove_content_type_name... OK
Applying auth.0002_alter_permission_name_max_length... OK
Applying auth.0003_alter_user_email_max_length... OK
Applying auth.0004_alter_user_username_opts... OK
Applying auth.0005_alter_user_last_login_null... OK
Applying auth.0006_require_contenttypes_0002... OK
Applying auth.0007_alter_validators_add_error_messages... OK
Applying auth.0008_alter_user_username_max_length... OK
Applying main.0001_initial...Traceback (most recent call last):
File "manage.py", line 22, in <module>
execute_from_command_line(sys.argv)
File "/Users/Wolf/Desktop/Education/CodingDojo/PYTHON/myEnvironments/djangoEnv/lib/python2.7/site-packages/django/core/management/__init__.py", line 367, in execute_from_command_line
utility.execute()
File "/Users/Wolf/Desktop/Education/CodingDojo/PYTHON/myEnvironments/djangoEnv/lib/python2.7/site-packages/django/core/management/__init__.py", line 359, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/Users/Wolf/Desktop/Education/CodingDojo/PYTHON/myEnvironments/djangoEnv/lib/python2.7/site-packages/django/core/management/base.py", line 294, in run_from_argv
self.execute(*args, **cmd_options)
File "/Users/Wolf/Desktop/Education/CodingDojo/PYTHON/myEnvironments/djangoEnv/lib/python2.7/site-packages/django/core/management/base.py", line 345, in execute
output = self.handle(*args, **options)
File "/Users/Wolf/Desktop/Education/CodingDojo/PYTHON/myEnvironments/djangoEnv/lib/python2.7/site-packages/django/core/management/commands/migrate.py", line 204, in handle
fake_initial=fake_initial,
File "/Users/Wolf/Desktop/Education/CodingDojo/PYTHON/myEnvironments/djangoEnv/lib/python2.7/site-packages/django/db/migrations/executor.py", line 115, in migrate
state = self._migrate_all_forwards(state, plan, full_plan, fake=fake, fake_initial=fake_initial)
File "/Users/Wolf/Desktop/Education/CodingDojo/PYTHON/myEnvironments/djangoEnv/lib/python2.7/site-packages/django/db/migrations/executor.py", line 145, in _migrate_all_forwards
state = self.apply_migration(state, migration, fake=fake, fake_initial=fake_initial)
File "/Users/Wolf/Desktop/Education/CodingDojo/PYTHON/myEnvironments/djangoEnv/lib/python2.7/site-packages/django/db/migrations/executor.py", line 244, in apply_migration
state = migration.apply(state, schema_editor)
File "/Users/Wolf/Desktop/Education/CodingDojo/PYTHON/myEnvironments/djangoEnv/lib/python2.7/site-packages/django/db/migrations/migration.py", line 129, in apply
operation.database_forwards(self.app_label, schema_editor, old_state, project_state)
File "/Users/Wolf/Desktop/Education/CodingDojo/PYTHON/myEnvironments/djangoEnv/lib/python2.7/site-packages/django/db/migrations/operations/models.py", line 96, in database_forwards
schema_editor.create_model(model)
File "/Users/Wolf/Desktop/Education/CodingDojo/PYTHON/myEnvironments/djangoEnv/lib/python2.7/site-packages/django/db/backends/base/schema.py", line 295, in create_model
s
I'm making a web application in Django, using a MySQL server for the database, and I keep getting a message that I have an error in my SQL syntax. I'm not writing any SQL queries. Django is doing that for me. I tried recreating the migration files and database, and I still get the same error, so I figure there must be an error in my models.py file, but I can't find it. The crazy part is, I'm working with a commit from a few days ago, and I don't remember getting this error then.
Does anyone know what I might be doing wrong?
Here's my repository on GitHub:
https://github.com/WolfElkan/hst3
And here's the error I'm getting, along with the full traceback:
Applying contenttypes.0001_initial... OK
Applying auth.0001_initial... OK
Applying admin.0001_initial... OK
Applying admin.0002_logentry_remove_auto_add... OK
Applying contenttypes.0002_remove_content_type_name... OK
Applying auth.0002_alter_permission_name_max_length... OK
Applying auth.0003_alter_user_email_max_length... OK
Applying auth.0004_alter_user_username_opts... OK
Applying auth.0005_alter_user_last_login_null... OK
Applying auth.0006_require_contenttypes_0002... OK
Applying auth.0007_alter_validators_add_error_messages... OK
Applying auth.0008_alter_user_username_max_length... OK
Applying main.0001_initial...Traceback (most recent call last):
File "manage.py", line 22, in <module>
execute_from_command_line(sys.argv)
File "/Users/Wolf/Desktop/Education/CodingDojo/PYTHON/myEnvironments/djangoEnv/lib/python2.7/site-packages/django/core/management/__init__.py", line 367, in execute_from_command_line
utility.execute()
File "/Users/Wolf/Desktop/Education/CodingDojo/PYTHON/myEnvironments/djangoEnv/lib/python2.7/site-packages/django/core/management/__init__.py", line 359, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/Users/Wolf/Desktop/Education/CodingDojo/PYTHON/myEnvironments/djangoEnv/lib/python2.7/site-packages/django/core/management/base.py", line 294, in run_from_argv
self.execute(*args, **cmd_options)
File "/Users/Wolf/Desktop/Education/CodingDojo/PYTHON/myEnvironments/djangoEnv/lib/python2.7/site-packages/django/core/management/base.py", line 345, in execute
output = self.handle(*args, **options)
File "/Users/Wolf/Desktop/Education/CodingDojo/PYTHON/myEnvironments/djangoEnv/lib/python2.7/site-packages/django/core/management/commands/migrate.py", line 204, in handle
fake_initial=fake_initial,
File "/Users/Wolf/Desktop/Education/CodingDojo/PYTHON/myEnvironments/djangoEnv/lib/python2.7/site-packages/django/db/migrations/executor.py", line 115, in migrate
state = self._migrate_all_forwards(state, plan, full_plan, fake=fake, fake_initial=fake_initial)
File "/Users/Wolf/Desktop/Education/CodingDojo/PYTHON/myEnvironments/djangoEnv/lib/python2.7/site-packages/django/db/migrations/executor.py", line 145, in _migrate_all_forwards
state = self.apply_migration(state, migration, fake=fake, fake_initial=fake_initial)
File "/Users/Wolf/Desktop/Education/CodingDojo/PYTHON/myEnvironments/djangoEnv/lib/python2.7/site-packages/django/db/migrations/executor.py", line 244, in apply_migration
state = migration.apply(state, schema_editor)
File "/Users/Wolf/Desktop/Education/CodingDojo/PYTHON/myEnvironments/djangoEnv/lib/python2.7/site-packages/django/db/migrations/migration.py", line 129, in apply
operation.database_forwards(self.app_label, schema_editor, old_state, project_state)
File "/Users/Wolf/Desktop/Education/CodingDojo/PYTHON/myEnvironments/djangoEnv/lib/python2.7/site-packages/django/db/migrations/operations/models.py", line 96, in database_forwards
schema_editor.create_model(model)
File "/Users/Wolf/Desktop/Education/CodingDojo/PYTHON/myEnvironments/djangoEnv/lib/python2.7/site-packages/django/db/backends/base/schema.py", line 295, in create_model
s
GitHub
WolfElkan/hst3
My prototype for the new website for HST Cultural Arts, Inc. - WolfElkan/hst3
elf.execute(sql, params or None)
File "/Users/Wolf/Desktop/Education/CodingDojo/PYTHON/myEnvironments/djangoEnv/lib/python2.7/site-packages/django/db/backends/base/schema.py", line 112, in execute
cursor.execute(sql, params)
File "/Users/Wolf/Desktop/Education/CodingDojo/PYTHON/myEnvironments/djangoEnv/lib/python2.7/site-packages/django/db/backends/utils.py", line 79, in execute
return super(CursorDebugWrapper, self).execute(sql, params)
File "/Users/Wolf/Desktop/Education/CodingDojo/PYTHON/myEnvironments/djangoEnv/lib/python2.7/site-packages/django/db/backends/utils.py", line 64, in execute
return self.cursor.execute(sql, params)
File "/Users/Wolf/Desktop/Education/CodingDojo/PYTHON/myEnvironments/djangoEnv/lib/python2.7/site-packages/django/db/utils.py", line 94, in __exit__
six.reraise(dj_exc_type, dj_exc_value, traceback)
File "/Users/Wolf/Desktop/Education/CodingDojo/PYTHON/myEnvironments/djangoEnv/lib/python2.7/site-packages/django/db/backends/utils.py", line 62, in execute
return self.cursor.execute(sql)
File "/Users/Wolf/Desktop/Education/CodingDojo/PYTHON/myEnvironments/djangoEnv/lib/python2.7/site-packages/django/db/backends/mysql/base.py", line 110, in execute
return self.cursor.execute(query, args)
File "/Users/Wolf/Desktop/Education/CodingDojo/PYTHON/myEnvironments/djangoEnv/lib/python2.7/site-packages/MySQLdb/cursors.py", line 205, in execute
self.errorhandler(self, exc, value)
File "/Users/Wolf/Desktop/Education/CodingDojo/PYTHON/myEnvironments/djangoEnv/lib/python2.7/site-packages/MySQLdb/connections.py", line 36, in defaulterrorhandler
raise errorclass, errorvalue
django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '() NOT NULL, `birthday` date NOT NULL, `grad_year` numeric(4, 0) NULL, `height` ' at line 1")
/r/django
https://redd.it/7m95tl
File "/Users/Wolf/Desktop/Education/CodingDojo/PYTHON/myEnvironments/djangoEnv/lib/python2.7/site-packages/django/db/backends/base/schema.py", line 112, in execute
cursor.execute(sql, params)
File "/Users/Wolf/Desktop/Education/CodingDojo/PYTHON/myEnvironments/djangoEnv/lib/python2.7/site-packages/django/db/backends/utils.py", line 79, in execute
return super(CursorDebugWrapper, self).execute(sql, params)
File "/Users/Wolf/Desktop/Education/CodingDojo/PYTHON/myEnvironments/djangoEnv/lib/python2.7/site-packages/django/db/backends/utils.py", line 64, in execute
return self.cursor.execute(sql, params)
File "/Users/Wolf/Desktop/Education/CodingDojo/PYTHON/myEnvironments/djangoEnv/lib/python2.7/site-packages/django/db/utils.py", line 94, in __exit__
six.reraise(dj_exc_type, dj_exc_value, traceback)
File "/Users/Wolf/Desktop/Education/CodingDojo/PYTHON/myEnvironments/djangoEnv/lib/python2.7/site-packages/django/db/backends/utils.py", line 62, in execute
return self.cursor.execute(sql)
File "/Users/Wolf/Desktop/Education/CodingDojo/PYTHON/myEnvironments/djangoEnv/lib/python2.7/site-packages/django/db/backends/mysql/base.py", line 110, in execute
return self.cursor.execute(query, args)
File "/Users/Wolf/Desktop/Education/CodingDojo/PYTHON/myEnvironments/djangoEnv/lib/python2.7/site-packages/MySQLdb/cursors.py", line 205, in execute
self.errorhandler(self, exc, value)
File "/Users/Wolf/Desktop/Education/CodingDojo/PYTHON/myEnvironments/djangoEnv/lib/python2.7/site-packages/MySQLdb/connections.py", line 36, in defaulterrorhandler
raise errorclass, errorvalue
django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '() NOT NULL, `birthday` date NOT NULL, `grad_year` numeric(4, 0) NULL, `height` ' at line 1")
/r/django
https://redd.it/7m95tl
reddit
At my wits end debugging this SQL syntax error • r/django
I'm making a web application in Django, using a MySQL server for the database, and I keep getting a message that I have an error in my SQL syntax....
What's everyone working on this week?
Tell /r/python what you're working on this week! You can be bragging, grousing, sharing your passion, or explaining your pain. Talk about your current project or your pet project; whatever you want to share.
/r/Python
https://redd.it/7m7xmi
Tell /r/python what you're working on this week! You can be bragging, grousing, sharing your passion, or explaining your pain. Talk about your current project or your pet project; whatever you want to share.
/r/Python
https://redd.it/7m7xmi
reddit
What's everyone working on this week? • r/Python
Tell /r/python what you're working on this week! You can be bragging, grousing, sharing your passion, or explaining your pain. Talk about your...