Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
semrade opened this issue Dec 31, 2023 · 3 comments
Open

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

semrade opened this issue Dec 31, 2023 · 3 comments

Comments

@semrade
Copy link

semrade commented Dec 31, 2023

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="[email protected]"
ADMIN_EMAIL="[email protected]"
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
Copy link
Author

semrade commented Dec 31, 2023

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
Copy link

Raxo96 commented Jan 16, 2024

Same issue with windows here

@codecakes
Copy link
Contributor

I had a similar observation about starting up the backend for contributing and have provided an approach here:
#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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants