Git Product home page Git Product logo

Comments (3)

c-v-ya avatar c-v-ya commented on July 21, 2024

Hi, thanks for feedback!

I've just cloned this repo, then:

  • created a .env file with variables
  • cd frontend && yarn && yarn build
  • cd ../ && export $(cat .env | xargs)
  • python -m venv venv && source venv/bin/activate
  • pip install -r requirements.txt
  • python manage.py migrate && python manage.py runserver

And after navigating to localhost:8000 got my login form.

At first I thought I forgot to set type on scripts in templatetags but that's not the case. So there is something else going on. And I wish I knew the reason, but unfortunately I don't. There is a SO question just like that but I have no idea if that works.

So, I know it's a terrible advice, but maybe clone the repo again and repeat those steps? 😅

from djact.

mickytwenty56 avatar mickytwenty56 commented on July 21, 2024

Thank you in advance. It's my mistake and I fixed it.

The reason is that I have made some change in this project.
I did something like below things.
1)pip django-cors-headers==3.4.0
2)django-cors-headers==3.4.0

I think it is related with cross-origin, but it made errors.
Finally, I would like to ask you to solve my problem. It will be very easy for you, but I don't.

The problem is that I want to make user login form which is customized.
Of course, I want to use your login section in the project.

In my customized login form, there are combobox for inputing userid, not textfield.
This is only different thing from your login form.
User can input userid by selecting the userid inside userid combobox, not typing userid in textbox.

My problem is to make some api for extracting userid from user table and add those into the combobox of userid in frontend.
Could you make some api for backend,some changes for frontend and upload it your repository?
I like your coding style. I can guess you are good backend developer including laravel etc. 🍎
So I would like to follow you and interact in the future.
Thanks a lot.

from djact.

c-v-ya avatar c-v-ya commented on July 21, 2024

I'm happy you've resolved that issue! In my case CORS headers are only needed for local development since in production backend serves react app itself and doesn't need them. But if you have different servers, then you'd need that settings too. That might not be clear from the article.

Now, about your request. I'm very flattered by your words, thank you! Yet I don't know a thing about laravel, my focus is on python and related stuff. But I digress. In my opinion, no one will do anything on the internet for free unless they're bored. So, I could do what you need, but I don't have a lot of free time to do that. Even if that was a payable thing I'd think about it before agreeing. Maybe you can find some junior developer who would like to up their skills and they'd do that for you. Or better yet, do it yourself. Because what you need is kind of a trivial thing. You'll learn a lot by doing it.

So I'm closing this as the problem itself was solved.

from djact.

Related Issues (2)

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.