diff --git a/README.md b/README.md index 826f36a..20128c9 100644 --- a/README.md +++ b/README.md @@ -49,9 +49,13 @@ $ python manage.py migrate $ python manage.py runserver ``` -### For Admin +### For Adding initial data ```bash -$ python manage.py createsuperuser -Email:- admin@greencart.com -Password:- Admin@123 +$ python manage.py loaddata data.json + +Admin-Email:- admin@greencart.com +Admin-Password:- Admin@123 + +TestUser-Email:- test@greencart.com +TestUser-Password:- Test@123 ``` \ No newline at end of file diff --git a/data.json b/data.json new file mode 100644 index 0000000..0038af8 --- /dev/null +++ b/data.json @@ -0,0 +1,44 @@ +[ + { + "model": "Auth.User", + "pk": 1, + "fields": { + "first_name": "admin", + "email": "admin@greencart.com", + "last_name": "admin", + "password": "pbkdf2_sha256$600000$0FjuZXUItXGWbeWFurh8u3$dQsM8ptw+Pad5B0I6cstdfDKM9g6Q2ig4CJaMRkZaVY=", + "is_superuser": true, + "is_staff": true, + "is_active": true + } + }, + { + "model": "Auth.User", + "pk": 2, + "fields": { + "first_name": "test", + "email": "test@greencart.com", + "last_name": "user", + "password": "pbkdf2_sha256$600000$sH4aon10SebzQ0LdhwAj8T$b8UEWHglxnZYEziQMRukhf56QExfKpgH4/ecOlWE0a0=", + "is_superuser": false, + "is_staff": true, + "is_active": true + } + }, + { + "model":"GreenCartEcom.navCategories", + "pk":1, + "fields":{ + "title":"Sales" + } + + + }, + { + "model":"GreenCartEcom.navCategories", + "pk":2, + "fields":{ + "title":"Vegetables" + } + } +] diff --git a/media/profile_pics/Screenshot_2024-05-17_at_7.37.46PM.png b/media/profile_pics/Screenshot_2024-05-17_at_7.37.46PM.png deleted file mode 100644 index 5d00e28..0000000 Binary files a/media/profile_pics/Screenshot_2024-05-17_at_7.37.46PM.png and /dev/null differ