ernestofgonzalez / djangorocket Goto Github PK
View Code? Open in Web Editor NEWA Django SaaS boilerplate
Home Page: https://djangorocket.com
License: Apache License 2.0
A Django SaaS boilerplate
Home Page: https://djangorocket.com
License: Apache License 2.0
hola, estoy probando tu código, y he podido instalarlo sin problemas, pero:
espero tu respuesta, gracias
Crear un usuario con /register/ nombre + email + password funciona y redirige al home. Pero con Google, hace el registro en la DB pero retorna el error:
InvalidRequestError at /login/google/
Request req_ioKJZx6JpG2jQz: Invalid email address:
pero si lo intentas nuevamente ahora ya no sale el error....
despues de creados los usuarios no se obtiene el boton de GOOGLE para ingresar en el LOGIN
Hi, Ernesto.
I'm trying to use this project on Windows 11.
To install the modules to run this project, I had to execute:
pip install cookiecutter==2.1.1 django==4.1.4 pipx celery dj-database-url python-dotenv whitenoise django-compressor django-cors-headers django-celery-beat django-countries graphene-djmoney django-phonenumber-field djangorestframework django-storages tailwind shortuuid dj-database-url
To use docker, we have to install docker e execute "docker compose up" on Powershell.
I did all the steps but I am getting this error:
ModuleNotFoundError: No module named 'dj-database-url'
I tried some tips that I found but did not work.
The module dj-database-url is installed and in the requirements.txt.
That is the motive to be unable to test this project.
Can you help me?
I tried running docker-compose and was successful in it. But for migrations command I am not sure what to do.
I tried following these two solutions
replaced postgres password by ALTER USER
https://stackoverflow.com/questions/12720967/how-can-i-change-a-postgresql-user-password
Added a user again named 'postgres'
I also cleared previous instances by
docker-compose down --volumes
I know this may be an issue from my end but any help would be great
Error:
PS D:\DEV\Repo\SAAS\djangorocket\TSaaS> python src/manage.py migrate
Traceback (most recent call last):
File "C:\Users\write\AppData\Local\Programs\Python\Python39\lib\site-packages\django\db\backends\base\base.py", line 282, in ensure_connection
self.connect()
File "C:\Users\write\AppData\Local\Programs\Python\Python39\lib\site-packages\django\utils\asyncio.py", line 26, in inner
return func(*args, **kwargs)
File "C:\Users\write\AppData\Local\Programs\Python\Python39\lib\site-packages\django\db\backends\base\base.py", line 263, in connect
self.connection = self.get_new_connection(conn_params)
File "C:\Users\write\AppData\Local\Programs\Python\Python39\lib\site-packages\django\utils\asyncio.py", line 26, in inner
return func(*args, **kwargs)
File "C:\Users\write\AppData\Local\Programs\Python\Python39\lib\site-packages\django\db\backends\postgresql\base.py", line 215, in get_new_connection
connection = Database.connect(**conn_params)
File "C:\Users\write\AppData\Local\Programs\Python\Python39\lib\site-packages\psycopg2\__init__.py", line 122, in connect
conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: FATAL: password authentication failed for user "postgres"
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "D:\DEV\Repo\SAAS\djangorocket\TSaaS\src\manage.py", line 22, in <module>
main()
File "D:\DEV\Repo\SAAS\djangorocket\TSaaS\src\manage.py", line 18, in main
execute_from_command_line(sys.argv)
File "C:\Users\write\AppData\Local\Programs\Python\Python39\lib\site-packages\django\core\management\__init__.py", line 446, in execute_from_command_line
utility.execute()
File "C:\Users\write\AppData\Local\Programs\Python\Python39\lib\site-packages\django\core\management\__init__.py", line 440, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "C:\Users\write\AppData\Local\Programs\Python\Python39\lib\site-packages\django\core\management\base.py", line 402, in run_from_argv
self.execute(*args, **cmd_options)
File "C:\Users\write\AppData\Local\Programs\Python\Python39\lib\site-packages\django\core\management\base.py", line 448, in execute
output = self.handle(*args, **options)
File "C:\Users\write\AppData\Local\Programs\Python\Python39\lib\site-packages\django\core\management\base.py", line 96, in wrapped
res = handle_func(*args, **kwargs)
File "C:\Users\write\AppData\Local\Programs\Python\Python39\lib\site-packages\django\core\management\commands\migrate.py", line 114, in handle
executor = MigrationExecutor(connection, self.migration_progress_callback)
File "C:\Users\write\AppData\Local\Programs\Python\Python39\lib\site-packages\django\db\migrations\executor.py", line 18, in __init__
self.loader = MigrationLoader(self.connection)
File "C:\Users\write\AppData\Local\Programs\Python\Python39\lib\site-packages\django\db\migrations\loader.py", line 58, in __init__
self.build_graph()
File "C:\Users\write\AppData\Local\Programs\Python\Python39\lib\site-packages\django\db\migrations\loader.py", line 235, in build_graph
self.applied_migrations = recorder.applied_migrations()
File "C:\Users\write\AppData\Local\Programs\Python\Python39\lib\site-packages\django\db\migrations\recorder.py", line 81, in applied_migrations
if self.has_table():
File "C:\Users\write\AppData\Local\Programs\Python\Python39\lib\site-packages\django\db\migrations\recorder.py", line 57, in has_table
with self.connection.cursor() as cursor:
File "C:\Users\write\AppData\Local\Programs\Python\Python39\lib\site-packages\django\utils\asyncio.py", line 26, in inner
return func(*args, **kwargs)
File "C:\Users\write\AppData\Local\Programs\Python\Python39\lib\site-packages\django\db\backends\base\base.py", line 323, in cursor
return self._cursor()
File "C:\Users\write\AppData\Local\Programs\Python\Python39\lib\site-packages\django\db\backends\base\base.py", line 299, in _cursor
self.ensure_connection()
File "C:\Users\write\AppData\Local\Programs\Python\Python39\lib\site-packages\django\utils\asyncio.py", line 26, in inner
return func(*args, **kwargs)
File "C:\Users\write\AppData\Local\Programs\Python\Python39\lib\site-packages\django\db\backends\base\base.py", line 282, in ensure_connection
self.connect()
File "C:\Users\write\AppData\Local\Programs\Python\Python39\lib\site-packages\django\db\utils.py", line 91, in __exit__
raise dj_exc_value.with_traceback(traceback) from exc_value
File "C:\Users\write\AppData\Local\Programs\Python\Python39\lib\site-packages\django\db\backends\base\base.py", line 282, in ensure_connection
self.connect()
File "C:\Users\write\AppData\Local\Programs\Python\Python39\lib\site-packages\django\utils\asyncio.py", line 26, in inner
return func(*args, **kwargs)
File "C:\Users\write\AppData\Local\Programs\Python\Python39\lib\site-packages\django\db\backends\base\base.py", line 263, in connect
self.connection = self.get_new_connection(conn_params)
File "C:\Users\write\AppData\Local\Programs\Python\Python39\lib\site-packages\django\utils\asyncio.py", line 26, in inner
return func(*args, **kwargs)
File "C:\Users\write\AppData\Local\Programs\Python\Python39\lib\site-packages\django\db\backends\postgresql\base.py", line 215, in get_new_connection
connection = Database.connect(**conn_params)
File "C:\Users\write\AppData\Local\Programs\Python\Python39\lib\site-packages\psycopg2\__init__.py", line 122, in connect
conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
django.db.utils.OperationalError: connection to server at "localhost" (::1), port 5432 failed: FATAL: password authentication failed for user "postgres"
``` `
playing around with this template and found the following issue:
src/templates/components/settings_desktop_sidebar
references the billing settings href as ':biling-settings' which is missing an L and causes issues rendering
.env
file.env
with debug values where possibleImplement a post-generate hook that executes formatting scripts for the generated project.
tailwind: corriendo
runserver: corre, pero decidi utilizar gunicorn
tengo acceso a home + login + registro + admin
como veo los templates (personalizar)?
como se agregan las suscripciones?
como listo las suscripciones?
hay un tema base? como ecommerce o landing?
creo que me perdi algo de la documentación... o no se donde continuar... por tu tiempo gracias
Feature request? When setting up Stripe, why add a https:// webhook endpoint when in development? We should be testing in localhost, shouldn't be?
Whenever I push to main
and the docs are built and pushed to gh-pages
, the djangorocket.com
custom domain setting is removed.
See Pushing changes to GitHub Pages branch removes custom domain setting, for possible fix.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.