Skip to content

Commit 5daac9a

Browse files
Add redis Django
1 parent 2ca8c3c commit 5daac9a

29 files changed

+358
-0
lines changed

redis_django/.env

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
DEBUG=True
2+
SECRET_KEY = 'django-insecure-a4!zmfjv4^sp^$+!y4+xe=2_8qq9c!1$8-(*wqyp8#k0u%ldr^'
3+
4+
ALLOWED_HOSTS = '*'
5+
#DATABASE_URL = 'postgresql://redis_user:redis_user@localhost:5432/redis2'
6+
DATABASE_URL = 'postgresql://postgres:postgres@localhost:5432/redis'

redis_django/readme.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
## Redis con Django
2+
3+
- Install requirements.txt
4+
- Install Postgres
5+
- Intall redis

redis_django/redis3/db.sqlite3

132 KB
Binary file not shown.

redis_django/redis3/home/__init__.py

Whitespace-only changes.
129 Bytes
Binary file not shown.
236 Bytes
Binary file not shown.
404 Bytes
Binary file not shown.
392 Bytes
Binary file not shown.
721 Bytes
Binary file not shown.

redis_django/redis3/home/admin.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
from django.contrib import admin
2+
3+
# Register your models here.
4+
from .models import *
5+
6+
admin.site.register(Fruits)

0 commit comments

Comments
 (0)