MicroPyramid / Django-CRM

Open Source CRM based on Django
https://bottlecrm.io
MIT License
1.93k stars 882 forks source link

Run the Djrango-CRM on windows using virtual environment #519

Open semrade opened 8 months ago

semrade commented 8 months ago

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=""

Email

DEFAULT_FROM_EMAIL="webmaster@example.com" ADMIN_EMAIL="admin@example.com" when I run thepython 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

semrade commented 8 months ago

I managed to run the code on my Mac OS x, and I could run the server locally.

image

on windows I don't have any idea why it doesn't work, il keep working to run the swagger and the rest ...

Raxo96 commented 8 months ago

Same issue with windows here

codecakes commented 6 months ago

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