Django-CRM
Django-CRM copied to clipboard
Run the Djrango-CRM on windows using virtual environment
Hello, I am trying to execute the project on Windows 10 using virtual env. I am not a web developer and I need your hint to solve my issue. this is the .env file I am using. `
Environment variables
SECRET_KEY="mco934$@)NHUYTC%6789" ENV_TYPE="dev" DOMAIN_NAME=""
AWS
AWS_BUCKET_NAME=""
AWS_ACCESS_KEY_ID="" AWS_SECRET_ACCESS_KEY="" AWS_SES_REGION_NAME="" AWS_SES_REGION_ENDPOINT=""
DB
DBNAME="bottlecrm" DBUSER="postgres" DBPASSWORD="root" DBHOST="localhost" DBPORT="5432"
Sentry
SENTRY_DSN=""
Celery
CELERY_BROKER_URL="" CELERY_RESULT_BACKEND=""
Swagger
SWAGGER_ROOT_URL=""
#CACHES MEMCACHELOCATION=""
DEFAULT_FROM_EMAIL="[email protected]"
ADMIN_EMAIL="[email protected]"
when I run the
python manage.py makemigrations` I have this message error:
File "D:\30_Django-CRM\Django-CRM\venv\Lib\site-packages\psycopg2_init_.py", line 122, in connect conn = _connect(dsn, connection_factory=connection_factory, **kwasync) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe9 in position 103: invalid continuation byte (venv) PS D:\30_Django-CRM\Django-CRM> python manage.py makemigrations
could help me please to run the project? I am available to answer or provide more information if needed. thank you in advance
I managed to run the code on my Mac OS x, and I could run the server locally.
on windows I don't have any idea why it doesn't work, il keep working to run the swagger and the rest ...
Same issue with windows here
I had a similar observation about starting up the backend for contributing and have provided an approach here: https://github.com/MicroPyramid/Django-CRM/pull/523
If you have a container engine like docker, rancher or podman, then starting up locally should be just as easy as defining the local .env and spin up the images using:
docker compose -f docker/docker-compose.yml up