Maja Baki
this my problem i need help
Luis
Please, do not paste all the exception message in the group. Upload it to pastebin and share the link next time
Maja Baki
OKAY
cj
Shaparaty wanted to post this long code: https://hastebin.com/iyisusepiq
Luis
this my problem i need help
Did you add your templates directory to django TEMPLATES setting?
Luis
Yes I add it
toploader is your project name?
Maja Baki
Is toploaded
Luis
Ok, and where is your templates for located? It's in project root directory or inside your app dir?
Maja Baki
I add it in app
Luis
Ok, check if you set to True the TEMPLATE appdirs setting and if it's enabled, then try to change your template reference from "top/base.html" to "base.html"
Maja Baki
Okay thank u sie
Maja Baki
i solved this now is working thank u
Luis
i solved this now is working thank u
You're welcome. Anyway, do you understand why django didn't locate your template file?
Sh
https://www.youtube.com/watch?v=clrtT_4WBAw Understanding DB
Sh
any freelancing projects for django?
Sh
i am a python/django developer
Sh
willing to work for 1-2 hours daily
Doragonsureiyā
willing to work for 1-2 hours daily
looks like you need an offtopic group, please continue this conversation at @pythonofftopic
Sh
thank you
Kapil
Hello All, I have executed my DJango application on Linux server and shared web link with 6 users. When all users used application at same time after 3-5 minutes they have received white page saying communication is lost. Could you please let me know how this can be fixed or I need to follow some other approach to launch my application. Thanks in advance
Sh
what is the DB connection max age
Anonymous
How to set session expire time
shiitakePL🇵🇱
How to set session expire time
https://docs.djangoproject.com/en/2.2/topics/http/sessions/
Kapil
Hello All, I have executed my DJango application on Linux server and shared web link with 6 users. When all users used application at same time after 3-5 minutes they have received white page saying communication is lost. Could you please let me know how this can be fixed or I need to follow some other approach to launch my application. Thanks in advance
Just to add-on this the error I am receiving is as below : Network Error (tcp_error) A communication error occurred: "" The web server may be down, too busy, or experiencing other problems preventing it from responding to requests...
Anonymous
clog
Anonymous
hey guys
Anonymous
i use this code in my views.py class BlogCreate(generics.CreateAPIView): lookup_field = 'pk' serializer_class = MySerializer def get_queryset(self): return Posts.objects.create()
Anonymous
when i sent request to my api i see this Allow: GET, PUT, PATCH, HEAD, OPTIONS
Anonymous
Shouldn't the methods POST and OPTION be seen only?
Arnak
http_method_names = [u'post', u'options']
Anonymous
ERROR: Command errored out with exit status 1: 'C:\Users\athar\Anaconda3\envs\Mydjangoenv\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\athar\\AppData\\Local\\Temp\\pip-install-5mw3m6_n\\misaka\\setup.py'"'"'; file='"'"'C:\\Users\\athar\\AppData\\Local\\Temp\\pip-install-5mw3m6_n\\misaka\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\athar\AppData\Local\Temp\pip-record-j774_vbo\install-record.txt' --single-version-externally-managed --compile --user --prefix= Check the logs for full command output.
Anonymous
i have this error during installation of misaka
Anonymous
please help me to solve this error
Master
First: use pastebin to put all traceback and share link with us.
Anonymous
ok
Master
Second: which python version are yuo using?
Anonymous
3.7.1
Anonymous
http://dpaste.com/24Y5HEP
Anonymous
@Hikaon brother this is link of error
Master
And what exactly you not understand from this phrase: error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/ ?
Сергей
I trying set to datafield date now according with my timezone, but I cant undestand how time formed and time change after reload django server
N
Is it possible to host djnago website in godaddy Web hosting ?
N
Some one said it's required vps i have go dady economic Linux hosting plan
Master
For django hosting you need only linux/any-OS and ability (via SSH for example) to install software into it like Apache/Nginx and Django itself
Anonymous
I want to make a student performance prediction is it possible in djangy
Anonymous
What u mean by prediction?
I want to apply machine learning
Anonymous
It will run in the background
Prasanthari
I think we can't use Ml and django at the same time..
Anonymous
It's like u use a gui
Not Your Dad
I think we can't use Ml and django at the same time..
You can, just add the required code in your app
Prasanthari
Sirius
Hello everybody! Help please! I need to convert from SQLite to MySQL.
Shivam Negi
anyone did CI/CD of django app to heroku?
Not Your Dad
Can u help me with that?
Try google, it's a search engine to browse on web
Shivam Negi
can I ping you? Need help
Anonymous
Not Your Dad
Great advice then y this group
Cba to help you, I got my own problems and work
Prasanthari
Great advice then y this group
I don't know anything about Ml so can't help u with that bro🙂
Anonymous
Why signals are used in django
Aamin
For India: Requirement for python developer in Tech Mahindra, Hyderabad location. Forward ur resumes to bashashaikh.bo@gmail.com
Luis
Why signals are used in django
I use it to trigger some actions like email notifications, etc. They allow modules/apps interaction too.
Shubham
Hii guys i need a small help related to datetime in Django. I'm having a model which has a field datetime. Using forms i display it on template using CBV. But in template the field is coming as text field. How do i make it as datetime filed? Note: I have already tried making it a widget and giving field type as datetime-local. This gives me in valid date/time error. Please help
Андрей
Hi, there is my snippet https://pastebin.com/qAaYsGZy How i can get list of parents from queryset of child?
Shubham
Using select_related
Shubham
qs = Child.objects.select_related('parent').all()
Ismael
You can use datepicker widget using parameter widget of your form field in your form class