Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7711763
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T01:27:31+00:00 2026-06-01T01:27:31+00:00

I’ve noticed that after I log in with Django registration it redirects me to

  • 0

I’ve noticed that after I log in with Django registration it redirects me to accounts/profile/. By default Django registration’s url.py doesn’t handle accounts/profile/, so I need to create my own.

Actually this questions is three-fold:

  1. Why does after logging in, it redirects to accounts/profile/? Is there a way to change that? Preferably after successfully logging in I would like Django to redirect back to the page before the login page.
  2. If I were to create my own view and template for accounts/profile/, then where should I put it? Django’s built-in users (auth_user) is shared among all Django apps inside a project, so should I place the view.py in the project folder and not inside the app folder?
  3. Or does Django profile actually takes care of this whole account/profiles/ thing? I already extended Django’s User class with my own UserProfile, but it’s more like additional fields to the User table than an actual “profile” (I didn’t create avatars or anything like that, just simple stuff like addresses and phone numbers, but most importantly, some custom user types that my app depends on).
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T01:27:33+00:00Added an answer on June 1, 2026 at 1:27 am

    Why does after logging in, it redirects to accounts/profile/? Is there
    a way to change that? Preferably after successfully logging in I would
    like Django to redirect back to the page before the login page.

    Just change setting LOGIN_REDIRECT_URL

    If I were to create my own view and template for accounts/profile/,
    then where should I put it? Django’s built-in users (auth_user) is
    shared among all Django apps inside a project, so should I place the
    view.py in the project folder and not inside the app folder?

    I like to create an app called “project_specific” in every project. That’s where I put all the stuff that’s not meant to be reusable and that couples many apps.

    You can also create a views.py at the project level, but that is sort of messy compared to making a project specific app.

    In reality it does not matter where you put it.

    Or does Django profile actually takes care of this whole
    account/profiles/ thing? I already extended Django’s User class with
    my own UserProfile, but it’s more like additional fields to the User
    table than an actual “profile” (I didn’t create avatars or anything
    like that, just simple stuff like addresses and phone numbers, but
    most importantly, some custom user types that my app depends on).

    That’s not the way to add extra user fields. I recommend that you read the docs on Storing additional information about users.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I need a function that will clean a strings' special characters. I do NOT
I am using Paperclip to handle profile photo uploads in my app. They upload
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
For some reason, after submitting a string like this Jack’s Spindle from a text
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I've got a string that has curly quotes in it. I'd like to replace
I have a French site that I want to parse, but am running into
In my XML file chapters tag has more chapter tag.i need to display chapters

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.