Anonymous
Follow the link of Pycharm docs 😁
I dont know have knowledge in Pycharm Django framework. I think this is the basic configuration. However what i have done is just installed pycharm and try to run project. I set path to python intrepreter. But still showing as
Error: Django is not importable in this environment
Anonymous
Mirco
Mirco
Anonymous
Anonymous
I already did and tried something. But still its not working
Anonymous
Well its okay
Anonymous
...
Anonymous
Windows 10
Anonymous
Anonymous
If i could you all can easily identify the issue
Mirco
Mirco
Mirco
Anyway follow this link
Anonymous
Mirco
Obviously, the python version is up to u ( strongly suggested 3.x !!)
Anonymous
Yep
Hello..is there a easy faq how to set up a simple page in django and pythonanywhere? Im new in django and didnt get it
Mirco
Yep
Did...but the files they are talking bout arent in the project folder...if i create them nothing rly happen
Mirco
Yep
Ok...trying it for 30 minutes...my py file work, can create .txt file and all, but im new to django and nothing seems to work 🤯😬
Anonymous
I found some incompatibilities with python3.7.1 、django2.2
Anonymous
example: AttributeError: 'str' object has no attribute 'decode
Yep
Ahh...writing your first django app, part 3&4. "This part should all work smoothly"
Joke is, there is no explanation
Mirco
Anonymous
operations.py query = query.decode(errors='replace') ==> query = query.encode(errors='replace')
Anonymous
error msg:
packages/Django-2.2-py3.7.egg/django/db/backends/mysql/features.py", line 82, in is_sql_auto_is_null_enabled
cursor.execute('SELECT @@SQL_AUTO_IS_NULL')
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/Django-2.2-py3.7.egg/django/db/backends/utils.py", line 103, in execute
sql = self.db.ops.last_executed_query(self.cursor, sql, params)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/Django-2.2-py3.7.egg/django/db/backends/mysql/operations.py", line 146, in last_executed_query
query = query.decode(errors='replace')
Mirco
Check on Django tickets tracker
Anonymous
Use regular expression in URL is Important ?
Mirco
Anonymous
Anonymous
Hi
Isaías
Hello
Isaías
How used pagination in django filter? Ex: .qs
Artyom
Hi guys! Could you say what is wrong if my api of DRF throws this : "kind_id_id": "(<django.db.models.fields.related.ForeignKey>,)"
Mirco
Doragonsureiyā
Please format the code you posted, by wrapping it in triple backticks. -> `
Doragonsureiyā
It looks like you posted a long piece of code, consider editing it out and putting it on hastebin.com and pasting the link to it instead.
Artyom
Artyom
Mirco
Anyway DRF offers ya better fields than CharField for ForeignKeys
have a look here
Doragonsureiyā
Please format the code you posted, by wrapping it in triple backticks. -> `
Doragonsureiyā
Please format the code you posted, by wrapping it in triple backticks. -> `
Doragonsureiyā
Please format the code you posted, by wrapping it in triple backticks. -> `
Doragonsureiyā
Please format the code you posted, by wrapping it in triple backticks. -> `
Macurrent
Is the server running on host "localhost" (::1) and accepting
TCP/IP connections on port 5432?
could not connect to server: Connection refused
Is the server running on host "localhost" (127.0.0.1) and accepting
TCP/IP connections on port 5432?
Doragonsureiyā
Macurrent
Manish
Manish
is it running or not?
Artyom
Manish
Manish
And make sure there is database to that you want to connect
Macurrent
Shrinath
Hii
Shrinath
Anyone django developer in Pune ?
Sagar
Corteis
ban
Sagar
I thought ban coming
Mirco
no worries guys 😃 3/3 warnings automatically ban a user
Manish
Shreehari
has anyone created a simple blog based on django with just html ?
Shreehari
if yes please link me to it
Raad
Hello guys,
I want to make a hotels dictionary so users can browse the hotels and see a list of hotels depending on the city that they chose and see the hotel details such as location and contact information. I need your suggestions in this app. Do I need create an app for hotels, app for the users, app for accounts? Like how many apps I need here ? I mean Django apps under my project. Hotels owners will be able to sign up and put their hotel information. Users need to sign up too.
Thank you
Anonymous
Luis
Hi guys! I'm working with django channels and need to send a message when a new entry is added from django admin to my model
Luis
Any idea ?
Doug
Can you hook into the model save and send an email when that happens?