Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

create-djangorender

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

create-djangorender

Create a new Django + React project with a single command

  • 0.1.0-alpha.11
  • unpublished
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Django Render app

This template provides a minimal set up to get a React and Django project running.

Running it

The React code is built and served by Vite, so you need to run this alongside Django.

To run Django, run the following commands:

cd server
poetry install
poetry run python manage.py migrate
poetry run python manage.py runserver

To run the Vite server, run the following commands:

cd client
npm install
npm run dev

Django is configured (using the DJREAM_VITE_DEVSERVER_URL setting) to make Django Render fetch frontend code from the Vite devserver.

In production, you should build the frontend code with npm run build and set the DJREAM_VITE_BUNDLE_DIR to the location of the folder that contains .vite and assets folders that Vite created.

Keywords

FAQs

Package last updated on 21 Mar 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc