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
Anonymous
I already did and tried something. But still its not working
Anonymous
Well its okay
Anonymous
...
Mirco
Can i ping you directly?
Better here for help other ones with same issue on Win
Anonymous
Windows 10
Anonymous
Better here for help other ones with same issue on Win
Ok but here i can't send error picture
Anonymous
If i could you all can easily identify the issue
Mirco
Ok but here i can't send error picture
Yep, it isn't allowed here
Mirco
If i could you all can easily identify the issue
Use imgur 😁 or code sharing tool
Mirco
Anyway follow this link
Anonymous
Yep, it isn't allowed here
Ahh that's why i asked to message you directly
Mirco
Obviously, the python version is up to u ( strongly suggested 3.x !!)
Mirco
I installed python-3.7.1.exe
Follow the guide and use your version
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
Yep
Did...but the files they are talking bout arent in the project folder...if i create them nothing rly happen
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
I found some incompatibilities with python3.7.1 、django2.2
Mmm not sure , I use it with 3.7.3 and works well
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 ?
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>,)"
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.
Mirco
Anyway DRF offers ya better fields than CharField for ForeignKeys have a look here
Artyom
Anyway DRF offers ya better fields than CharField for ForeignKeys have a look here
I will use it> case problem have saved. I know, only one, that it is links with kind_id_id field. Without it all is works.
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. -> `
Mirco
I will use it> case problem have saved. I know, only one, that it is links with kind_id_id field. Without it all is works.
yup, but 'cause I've seen lots of users here share that code I suppose it's a tutorial about DRF so I suggest ya not to just copy & paste but try to understand and make the code better by using cool features offered by DRF
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?
Manish
is it running or not?
Macurrent
check your postgresql status
$pg_isready /var/run/postgresql:5432 - no response (myvenv) ┌─[✗]─[amani@parrot]─[~/Desktop/Grace]
Manish
And make sure there is database to that you want to connect
Macurrent
$pg_isready /var/run/postgresql:5432 - no response (myvenv) ┌─[✗]─[amani@parrot]─[~/Desktop/Grace]
Am not understanging the output.. from the internet....pg_isready returns 0 to the shell if the server is accepting connections normally, 1 if the server is rejecting connections (for example during startup), 2 if there was no response to the connection attempt, and 3 if no attempt was made (for example due to invalid parameters).
Macurrent
Can you login as postgre user
let me try logging in
Macurrent
Can you login as postgre user
I dont know how i logged in yesterday.. But i remember creating a database and a user
Macurrent
I dont know how i logged in yesterday.. But i remember creating a database and a user
Today my vs code prompted me to chose some python versions. i chose python3.1.7/myvenv... I think choosing this is the thing that brought me all this problems
Shrinath
Hii
Shrinath
Anyone django developer in Pune ?
Corteis
ban
Sagar
I thought ban coming
Mirco
no worries guys 😃 3/3 warnings automatically ban a user
Manish
let me try logging in
Login and keep password remember
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
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?
Luis
Can you hook into the model save and send an email when that happens?
I merge you response with channels docs and figure out how to do it...