0

I did develop most of the front end but I am thinking to hire a freelance frontend developer(HTML, CSS and JS) to refine the design and make the site look professional. I am not yet comfortable to share my code with him. Is there any way in which he can run the django app without having models.py & views.py and work on html, css and js files. Any leads on this matter is appreciated. Thanks

4
  • Well the view is in essence what calculates the HTTP response, so without any views, there is not much the server does... Models are used to make data persistent in the database, so it might be possible to provide models that do not really work with a database, but again, somehow these models will need to satisfy the contracts the view use. Commented Aug 19, 2018 at 13:47
  • any utility which mimicks the view? I mean it needn't be an exact response. Some predefined response to all kinds of requests. Similar to a static site. Commented Aug 19, 2018 at 13:49
  • sure, you can replace all views, with a HTTPResponse that for example returns the a response you "recorded", or a sample response. And if you do not want to let anything persist, you can indeed make models.py blank. Commented Aug 19, 2018 at 13:50
  • Actually this explains in a better way, and I am looking a solution in this line. superuser.com/questions/785464/… Commented Aug 19, 2018 at 14:28

1 Answer 1

2

He can build pure HTML/CSS/JS pages that you can use afterwards as your Django templates and extend as you wish. It depends of the complexity of your templates I guess.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.