Skip to main content

a react application already configured to be used in a django project as a django application

Project description

django-react-app

django-react-app is a react application already configured to be used in a django project as a django application.

Quick start

Install

pip install django-react-app

Add "django_react_app" to your INSTALLED_APPS setting like this::


    INSTALLED_APPS = [
        ...
        'django_react_app',
    ]

Include the django_react_app URLconf in your project urls.py like this:

path('', include('django_react_app.urls')),


Configuration

To have django-react-app on your root project

You will find the django_react_app inside your <virtualenv_name>/lib/<python_ver>/site-packages/ folder move the django_react_app folder to your root project

Install React dependencies

Open a terminal and go to the django_react_app folder, to install react dependencies run :

npm install

After that to run the React app you can run:

npm run dev

Run your django app

Start your django development server in another terminal and visit http://127.0.0.1:8000/ to view your react app application running

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django_react_app-1.1.0.tar.gz (36.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_react_app-1.1.0-py3-none-any.whl (37.0 kB view details)

Uploaded Python 3

File details

Details for the file django_react_app-1.1.0.tar.gz.

File metadata

  • Download URL: django_react_app-1.1.0.tar.gz
  • Upload date:
  • Size: 36.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for django_react_app-1.1.0.tar.gz
Algorithm Hash digest
SHA256 4d435b5ec7119bb789ac65bc533cde5a369ded2f3b666ff30a43b6529cf8663c
MD5 43ff22ecc4b3a1418ae1e66718dd12dd
BLAKE2b-256 3f087147697017130291ad42085c9ed3d9d1293b7eb0e8e942725114a5ef0dbf

See more details on using hashes here.

File details

Details for the file django_react_app-1.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for django_react_app-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e67a1a1da80890a255db9cce982eee7e037a7e99669e1e2392d77203252d84ce
MD5 6c4cadbca979a7198c90b687aab8e3ae
BLAKE2b-256 1faf359e3da8b106da76c3ee3a64a4c8898e58e0edd6bba92ae600a057774555

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page