Rohan
yes i do in root
Is your project open source?
Elmir
yes
Maxim
yes i do in root
how do you understand in which folder the command is executed?
Rohan
yes
Give link
Elmir
i write ls if i see manage.py i write heroku python manage.py migrate
Elmir
Give link
https://github.com/safaraliyevelmir/Portfolio_Site
Elmir
heroku ls?
noo only ls
Rohan
Elmir
And your deployment is on heroku?
noo i try but i cant do it
Maxim
noo only ls
reread https://t.me/django/169097
Elmir
i thinh maybe i add venv to gitignore is it source of error?
Maxim
i thinh maybe i add venv to gitignore is it source of error?
if someone told you that heroku is easy to use, they meant themselves because they studied the documentation
Anonymous
In django I used middleware and and in auth.py I have redirect('login') but going to chrome the error is showing "redirected you too many times" and login page is not coming
Anonymous
Help me out plz
Anonymous
So what can I do
Maxim
So what can I do
think about how to free the login page from the redirect
Anonymous
Bro actually I am learning django and have stuck to it
RaxorRombo
DJANGO
RaxorRombo
environment creation
RaxorRombo
app cration
RaxorRombo
correct steps ndo
Maxim
?
RaxorRombo
for beginner
RaxorRombo
from1 to end
Doragonsureiyā
from1 to end
Read the rules before any activity: @PythonRules
Anonymous
I have a problem. Django cors does not work
RaxorRombo
ok thanks
Maxim
I have a problem. Django cors does not work
did you add cors to the form template?
Anonymous
https://paste.ubuntu.com/p/kxrPcxsJvV/
Doragonsureiyā
Please help me
Maybe anyone is here, yes, but they are not obliged to read everyone's message here neither to reply to everyone's message, if someone wants to reply to your message, they will do that, just don't try to draw attention to your message writing "anyone?" every 5 minutes, that will lead you to be warned for SPAM/Flood, just be patient or use Google/DuckDuckGo to research about your question instead of wasting time here waiting for people to do your work. Have a nice day 😊
Anonymous
Access to XMLHttpRequest at 'localhost:8000/jwt-auth/' from origin 'http://localhost:8080' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-untrusted, https.
Anonymous
how do you add the CORS token to the request?
This is a jwt auth for get access token
Maxim
This is a jwt auth for get access token
this is not the answer to my question
Anonymous
this is not the answer to my question
Sorry I don't understand your question well
Maxim
Sorry I don't understand your question well
When does frontend authorization take place, how does the frontend get the CORS token and how does it add this token to the request?
Anonymous
const header = { headers: { 'Content-Type': 'application/json' } } axios.post('jwt-auth/', this.user, header) .then(res => console.log(res)) .catch(error => console.log(error))
Maxim
What should I do?
read more about how to use cors
Champak Lal
heroku error:Application error An error occurred in the application and your page could not be served. If you are the application owner, check your logs for details. You can do this from the Heroku CLI with the command heroku logs --tail
Champak Lal
help
pankaj
Hey can anybody tell me how to save profile pic, firstname, lastname in user table while login through Google oauth
Anonymous
...: I face some problem on middleware def auth_middleware(get_response): # One-time configuration and initialization. def middleware(request): request.session.get('customer'): if not return redirect('login')response = get_response(request) return response return middleware When I refresh the page says 127.0.0.1 redirected you too many times. I will be thankful to you if you provide me a solution to this problem. Bhai please help me
Anonymous
😐 it's recursion middleware return. I guess may be wrong
Anonymous
I am
Sajjad
Hey any body have any book to learn django
Sajjad
?
Sajjad
I coudnt find one
Siroj
is it possible to create a virtual environment for a finished project?
Abdulaziz
is it possible to create a virtual environment for a finished project?
yes. after creating you have to install necessary packages to venv
Anonymous
Hey any body have any book to learn django
Django by example 3rd Django for beginners Django for professionals Django for API's
Pydeveloper
E commerce
Pydeveloper
Anyone
abcde
Hello I am begginer in web development I have interest in backend development I know Python basics
abcde
Anyone suggest me any django tutorial
kuzmich
Anyone suggest me any django tutorial
I personally like Dennis Ivy
kuzmich
His tutorials are great for beginners
ADI
hi..any body have idea this error IntegrityError at /home
ADI
django.db.utils.IntegrityError: NOT NULL constraint failed: crud_taskdestailes.stu
Doragonsureiyā
Anyone suggest me any django tutorial
Check out PythonRes, a channel for Python resources - video courses, pdf books, tutorials and other info to help you learn Python.
legrand
Hey guys , I'm kinda stuck at the level where I wanna access my Django admin dashboard. When I run the server and copy the 127.0.0.1/admin on my browser I get this error " DoesNotExist at /admin ." Im new in Django . How can I resolve this ❓ thanks for your help .
Doragonsureiyā
django.db.utils.IntegrityError: NOT NULL constraint failed: crud_taskdestailes.stu
Lesson number one: Always read what the machine tells you
Homayoun
سلام بچه ها. گروه جاوااسکریپتو داره کسی?
Sherlock
i use pipenv shell to get into django virtual enviornment, how to get out of it ? 🙏🙏
Sherlock
ctrl+c
thats use to get out of running server i guess not virtual enviorment bro?
Homayoun
ok. type diactivate instead of actovate
Sherlock
okk bro
Sherlock
why most of time i don't get manage.py file ?🙏🙏
Deleted
Hey guys, how could I get the value in django template?