Arjun
Hey Guys. Anyone here used djongo package?
Gulshan
How to use django with mysql in ubantu
Gulshan
I have tried it but not working
Mirco
Why ? Have any errors ?
Gulshan
Yes Install mysqlclient But I had install but still it show this msg
Gulshan
Install mysqlclient
Mirco
Good, so what don't understand about that message ? Have you already installed it ?
Gulshan
Yes
Mirco
So, I remember I had a problem with mysqlclient so install pymysql and everything should be work In the init of your Django project try to import pymysql and call install_as_MySQLdb() method
inchidi
As far as i understand it's designed to be used when you move to a new type of database
yeah it can and providing initial data too but when using it, exported data stored unorder and breaks relationship. wondering how avoid that.
inchidi
happy new year btw 🎉
George
George
uwu
Mirco
Happy new year 😁
Denys
Hi, happy new year!
Anders (izzno / gooood) πŸ‡³πŸ‡΄
Happy new year and thanks for all your help and input guys 😊👍
Bhupesh
I have a issue
Bhupesh
I have both Python2 and Python3 installed on my Ubuntu Machine with both version of Django<1.11 and 2.1.3> .Whenever I run django-admin startproject ... It uses Django 1.11 by default.How can prevent this from happening I tried using virtualvenv but couldn't work it out
Bhupesh
Any Help ????
George
using a virtual env
George
it's necessary
Bhupesh
Can anyone suggest step by step command process
Bhupesh
it's necessary
Yeah I know 😅
Anders (izzno / gooood) πŸ‡³πŸ‡΄
Any Help ????
The command for Python 3 is "python3"
George
Can anyone suggest step by step command process
just read the tutorial of virtual envs for god sake
Anders (izzno / gooood) πŸ‡³πŸ‡΄
You don't want to change the python command to execute python3 its not how it's supposed to be
Anders (izzno / gooood) πŸ‡³πŸ‡΄
On Ubuntu
Anders (izzno / gooood) πŸ‡³πŸ‡΄
Run "python3 django-admin startproject"
Anders (izzno / gooood) πŸ‡³πŸ‡΄
python3 manage.py xxxx
Anders (izzno / gooood) πŸ‡³πŸ‡΄
Etc etc
Bhupesh
Run "python3 django-admin startproject"
I tried using thing but it didn't work Python 3 cant open django-admin
Anders (izzno / gooood) πŸ‡³πŸ‡΄
pip3 install django
Anders (izzno / gooood) πŸ‡³πŸ‡΄
pip = python2 pip3 = python3
Rajjix
you just need to activate your virtual environment with django2.1 u can’t have 2 versions on the system or in the same virtual environment,
George
in the virtual env you shouldn't
Rajjix
Not with the same python path
Anders (izzno / gooood) πŸ‡³πŸ‡΄
And you need to learn the basics of the OS you are running.
Bhupesh
Thanks 👌 Everyone Consider m a noob I think i figured it out
Anders (izzno / gooood) πŸ‡³πŸ‡΄
Thanks 👌 Everyone Consider m a noob I think i figured it out
Just do what you can to get going, then worry about environments later, but sooner rather then later...
Anders (izzno / gooood) πŸ‡³πŸ‡΄
True Thanks 😀 btw
https://realpython.com/python-virtual-environments-a-primer/
Deleted Account
hi, everyone. i have a question about the knox permission. i am trying to create a login api. i set DjangoModelPermissionsOrAnonReadOnly in settings.py. in views.py, i set allowAny in Class Login(APIVIew). after i send a json data, it says 403 Forbidden and it returns "CSRF Failed: CSRF token missing or incorrect.". i don't why it still requires a token since i have set to allowAny.
Komang
https://docs.djangoproject.com/en/2.1/ref/csrf/
Ghorz
took your advice
Did you use it?
Rammy
Already watching the videos
Rammy
Did you use it?
you are Nigerian?
Rammy
Sure
lets connect now
Rammy
Been looking for Nigerians that use Django
cj
now don't go offtopic 🙂
Rammy
now don't go offtopic 🙂
naaa Its still about Django😄😄
cj
naaa Its still about Django😄😄
no it's not, now please keep on topic
Ghorz
lets connect now
You're free
Rammy
Thats Django 1
You can easily integrate django 2 into the tutorial yoursef
Ghorz
Thats Django 1
Yea 1.11 but its a great resource. Django 1.10 or 1.11 code will work fine in django 2 with little to no modification.
Ghorz
Remember Two scoop of Django is not 2.0 but its a good learning resource.
Anders (izzno / gooood) πŸ‡³πŸ‡΄
In deed, but a whole course. I liked Django 2 by example. It moved fast and requires you to have fairly good knowledge around python but your left with knowing a huge amount of options. No html / css though.
Ghorz
In deed, but a whole course. I liked Django 2 by example. It moved fast and requires you to have fairly good knowledge around python but your left with knowing a huge amount of options. No html / css though.
Sure, Django requirement is a basic knowledge of web development with PHP or any other web tool, but that course assume you have 0 knowledge of web development.
Anders (izzno / gooood) πŸ‡³πŸ‡΄
👍
Lapanit β˜ƒοΈ
Evening fellas
cj
Evening fellas
still mornig here
cj
are you from the future?
cj
import future
Lapanit β˜ƒοΈ
Lapanit β˜ƒοΈ
import future
Thanks brodolf