Coder Social home page Coder Social logo

Comments (4)

kanishka-linux avatar kanishka-linux commented on May 23, 2024

I look into the code to see that the base urls are generated dynamically for each user and directory.

yes, it is the reason why it won't work by simply modifying nginx config file.

Currently only way it can be done is by allowing users to add custom root_url_location in settings.py and then manually change urls.py file. It will require lot of changes and can break things arbitrarily.

I've pushed few commits in testing branch, to show how it can be done. You can fiddle with the code, and make pull request against that branch. Make sure to run tests and add few more if you think necessary.

from reminiscence.

Aerex avatar Aerex commented on May 23, 2024

Alright thanks I will look into it.

from reminiscence.

kanishka-linux avatar kanishka-linux commented on May 23, 2024

In settings file, a new variable ROOT_URL_LOCATION has been added. Once it has been set to some value like '/bookmark', then all url locations will be set relative to it. There is no need to modify urls.py or nginx config files.

from reminiscence.

Aerex avatar Aerex commented on May 23, 2024

Ah thanks. I was all over the place this week so you beat me to it lol. I will just close this issue

from reminiscence.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.