ɱσσɳ
Beka
Ok
yeah, honestly I never used... so I don't want to come up with some ideas..
Bramh Prakash
yeah, honestly I never used... so I don't want to come up with some ideas..
No problem, On internet there are only two engine provide django connection with mongoDb but for avoiding migration problem pip install djongo is best but there is not enough information about it , except git
Beka
If this project just for learning and testing, you could try PostgreSQL. Mostly PostgreSQL used. But anyways, you can decide.
Beka
ofcourse
<app><templates><app>?
ɱσσɳ
sorry it not clear
please share your settings.py
ɱσσɳ
sorry it not clear
I think you no need to explicitly specify templates folder. django automatically looks templates from there
Beka
templateDoesNotExit at/ home.html so django is looking for file home.html here are a few guesses you showed wrong directory when you are rendering html file or your template directory is wrong. That's all from me.
Vasiliy
Hi everyone. does anyone use django + mongodb? if so how?
ɱσσɳ
templateDoesNotExit at/ home.html so django is looking for file home.html here are a few guesses you showed wrong directory when you are rendering html file or your template directory is wrong. That's all from me.
It is the best practice, placing all html templates inside a directory with same name that of your app and pass 'app_name/html_file.html' to render function
Bramh Prakash
Hi everyone. does anyone use django + mongodb? if so how?
Hi read this https://github.com/nesdis/djongo
ɱσσɳ
Yes, that's what I asked.
Oh sorry, i thought you're the one asked doubt 😅
Pirah
i am making an administrator interface with djngo, after creating the interface when I click connect it gives me this error: argument 1 most be str, not posixpath . Help me please !
Coders Needed Eth
send full stacktrace
King__David
Pls what is the difference between a redirect and get_absolute_url?
Doragonsureiyā
Pls what is the difference between a redirect and get_absolute_url?
Step 1: Open a browser Step 2: Write down https://google.com or https://duck.com and press Enter Step 3: In the search box write down the same words you asked here Step 4: Read the firsts results
Pirah
i am making an administrator interface with djngo, after creating the interface when I click connect it gives me this error: argument 1 most be str, not posixpath . Help me please !
TypeError at / admin /login/ Argument 1 must be str, not posixPath Request Method : post Django version : 2.2.7 Exception type : typeError Exception value : Argument 1 must be str, not posixPath Exception location : /usr/lib/python3.6/site-package/Django/db/backends/SQLite3/base.py in get_new_connection, line 194 A
Anonymous
Stuck on creating python environment,it says no such file or directory,any help
ᴹᵃᵏˢᵃᵗ
Stuck on creating python environment,it says no such file or directory,any help
Are you opening some path or file? Show the code or error
Akintola
Hello. Please need idea / links on how to create a SPA in Django to avoid reloading of page. Thanks.
Kamal
Hey... documentation is very boring....is there anyelse tutorial where i learn Django
Anonymous
Hello. Please need idea / links on how to create a SPA in Django to avoid reloading of page. Thanks.
Go to one JavaScript framework that can do spa and do the frontend after that do the backend here by Django and Django restframework done for more info search on Google.com or duckduckgo.com or ...
Doragonsureiyā
Hey... documentation is very boring....is there anyelse tutorial where i learn Django
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Anonymous
Are you opening some path or file? Show the code or error
I was trying to create venv environment in conda like mixing them.Can I do my django project without creating virtual environment
ᴹᵃᵏˢᵃᵗ
can you do pip list in terminal of conda? Is it there?
ᴹᵃᵏˢᵃᵗ
Yes
what packages you see in global list ?
Anonymous
Depending on what you need right now. You can use venv or not using it.
I was trying to create conda env,but it's heavyweight,is venv lightweight ?
ᴹᵃᵏˢᵃᵗ
Anonymous
Yes venv is light weight. It installing fast.
Can I install it on anaconda prompt,as it uses conda
ᴹᵃᵏˢᵃᵗ
I'm not using Anaconda, i do it on simple cmd terminal. You can try to "pip install venv"
Anonymous
Ok let me try
ᴹᵃᵏˢᵃᵗ
or pip install virtualenv
ᴹᵃᵏˢᵃᵗ
Version 3 has own built-in venv
ᴹᵃᵏˢᵃᵗ
try to import venv, if you have version 3 , and pip install virtualenv if you using 2.7
ᴹᵃᵏˢᵃᵗ
Type import venv in your file or terminal then
Anonymous
Anonymous
Oh failed
What did it says
ᴹᵃᵏˢᵃᵗ
Seems like it's there
so, you can use it then, i guess
Anonymous
Can't send the error screenshot here can I pm
Anonymous
Anonymous
Anonymous
so, you can use it then, i guess
I think so,but it says that this interpreter is in conda environment but it has not been activated,is that mean conda is already installed,but not activated
ᴹᵃᵏˢᵃᵗ
Yeah, maybe conda is less different
ᴹᵃᵏˢᵃᵗ
Don't know how activate in conda
Bunty chhatri wala..
Which one should i use for JWT djangorestframework-jwt Or Django-rest-framework-simpleJwt Which one is better? Any suggestions?
M
hi Guys i have started with python django project and have one html file inside my template folder. just want to know if anyone can provide me example guidlines how can i take vallues dynamically with help of python code ( code is reading file or doing select on db table ) to my template html file and display
M
many thanks
M
i searched but not so well explained
M
https://stackoverflow.com/questions/41990794/django-executing-python-code-in-html
Daisuke
Hello everyone! I'm an engineering student from India. I explore various IT fields and I came across django. I don't anything about python but I'm familiar with java and I can understand the syntax of python. Where should I start learning django or should I learn it or not. I know django is used for backend web development but I don't the concepts like MVC, REST etc related to web and backend.
Daisuke
I see. Okay
Anonymous
Hello guys I had some problem installing django by pip,so I downloaded the .wheel format django file,how can I import it to python terminal
KJ
What was your problem when you used pip?
KJ
pip makes life easier I suggest you use it that way
Anonymous
pip makes life easier I suggest you use it that way
Yes but I'm on office computer I can't access internet right know.i downloaded the .whl extension on my phone and sent to the pc. I tied pip install C:\path\djangofile.whl But got error
Lokendra
Yes but I'm on office computer I can't access internet right know.i downloaded the .whl extension on my phone and sent to the pc. I tied pip install C:\path\djangofile.whl But got error
Dont know about whl, but you can download the source code of django from github and place it under scripts folder (which is in your python folder)
Lokendra
https://www.djangoproject.com/download/
Lokendra
Lokendra
Or go through freecodecamp django tutorial
M
Or go through freecodecamp django tutorial
Thanks let me check ..does it work auto refresh of page also
Lokendra
Thanks let me check ..does it work auto refresh of page also
By default it doesn't auto refreshes pages.
Anonymous
Has anyone worked with ordertracking app? I'm stuck at 'order_tracking' model fields😅