Django_neo4j is a sample repository demonstrating how to integrate a Django web application with a Neo4j graph database. This repository provides a simple example to get you started with building Django applications that utilize the powerful capabilities of Neo4j for managing and querying connected data.
- Python (>=3.6)
- Django (>=3.x)
- Neo4j (>=4.x)
-
Clone this repository:
git clone https://github.com/yourusername/Django_neo4j.git
-
Install the Python dependencies:
pip install -r requirements.txt
-
Set up your Neo4j database. You can download and install Neo4j from here. Make sure to start the Neo4j server.
-
Configure your Django application to connect to the Neo4j database. You can find the database connection settings in
settings.py
. -
Run the migrations to create the necessary database schema:
python manage.py migrate
-
Start the Django development server:
python manage.py runserver
Once the server is running, you can access the Django application by navigating to http://localhost:8000
in your web browser. You can now explore the sample application, which demonstrates basic CRUD operations with a Django model connected to a Neo4j database.
Contributions are welcome! If you find any issues or have suggestions for improvements, please feel free to open an issue or create a pull request.
This project is licensed under the MIT License.