Re: Having Trouble Creating a Test Database

2022-06-07 Thread Mark Phillips
Yes. All migrations have been done. On Tue, Jun 7, 2022, 9:01 AM Sebastian Jung wrote: > Do you have make manage.py migrate and afzer this manage.py makemigrations? > > Mark Phillips schrieb am Di., 7. Juni 2022, > 17:02: > >> I can't seem to be able to create a test database for my django p

Re: Having Trouble Creating a Test Database

2022-06-07 Thread atoosa Keshavarz
Hi Why do not you use mock for data base ? If you use mock data base you do not need test data base and your data base will not be change On Tue, 7 Jun 2022, 7:32 pm Mark Phillips, wrote: > I can't seem to be able to create a test database for my django project. I > get this error: > > django.db

Fullstack developer job django backend, vue js, html, css

2022-06-07 Thread mah...@gmail.com
Are you the developer we are searching for? We need a developer with backend skills in django (Rest API), fluent in python, postgres SQL, Vue JS, CSS and HTML to join our team. We use github for version controls. We have a application that needs some code reviewing also. Send your application

Re: How replace "./manage.py < some_code.py" with "./some_code.py" for website scripts?

2022-06-07 Thread cseb...@gmail.com
Don't you sometimes have housekeeping chores that are done by scripts? Often those scripts want to access the ORM such as to update something in the database. I'm aware of notion of creating custom ./manage.py commands but a standalone scripts seems easier no? cs On Monday, June 6, 2022 at 3:17

Re: How replace "./manage.py < some_code.py" with "./some_code.py" for website scripts?

2022-06-07 Thread cseb...@gmail.com
Thanks. Works great! On Monday, June 6, 2022 at 9:44:39 PM UTC-5 juw...@gmail.com wrote: > You can add the following lines in your script: > > ` > import django > sys.path.append('') > os.environ.setdefault('DJANGO_SETTINGS_MODULE', '') > django.setup() > ` > > On Tue, 7 Jun 2022 at 04:17, Jason

Re: Having Trouble Creating a Test Database

2022-06-07 Thread Sebastian Jung
Do you have make manage.py migrate and afzer this manage.py makemigrations? Mark Phillips schrieb am Di., 7. Juni 2022, 17:02: > I can't seem to be able to create a test database for my django project. I > get this error: > > django.db.utils.ProgrammingError: (1146, "Table > 'test_hopi_django.Cu

Re: Session in Python for Login and Logout

2022-06-07 Thread 'Kasper Laudrup' via Django users
On 07/06/2022 06.59, Mukul Verma wrote: yeah i was saying in Django Thanks Everyone please tell me something in steps for this like how to use session variable in django and can create session currently i am able to generate token (access and refresh) and further need to create sessionĀ  with th

Having Trouble Creating a Test Database

2022-06-07 Thread Mark Phillips
I can't seem to be able to create a test database for my django project. I get this error: django.db.utils.ProgrammingError: (1146, "Table 'test_hopi_django.CurrentArticle' doesn't exist") I have full details at https://stackoverflow.com/questions/72521409/cant-create-django-test-database if anyo

Re: Session in Python for Login and Logout

2022-06-07 Thread 'Kasper Laudrup' via Django users
On 07/06/2022 06.59, Mukul Verma wrote: yeah i was saying in Django Thanks Everyone please tell me something in steps for this like how to use session variable in django and can create session currently i am able to generate token (access and refresh) and further need to create sessionĀ  with th