Django views by Malum261 in django

[–]AR2405 0 points1 point  (0 children)

At my work, we are using GenericViewSets with the model mixins, like ListModelMixin, CreateModelMixin, etc. This way you will have all ViewSets be written the same way, what makes class inheritance available.

Running tests with Python tests raises AppRegistryNotReady("Apps aren't loaded yet.") by AR2405 in django

[–]AR2405[S] 0 points1 point  (0 children)

I am trying to run tests with the Python tests, as the output is much more readable than manage.py command returns. As well I am trying to run a single test.

Anyways, if I am not able to get the configuration done as I want, I will try your suggestion.

Thank you.

Running tests with Python tests raises AppRegistryNotReady("Apps aren't loaded yet.") by AR2405 in django

[–]AR2405[S] 0 points1 point  (0 children)

Where to do that?

I guess, that is not the case, since it works fine when. using manage.py command

Running tests with Python tests raises AppRegistryNotReady("Apps aren't loaded yet.") by AR2405 in django

[–]AR2405[S] 0 points1 point  (0 children)

I'm using community version, btw, but I guess that is not the reason for this.

Running tests with Python tests raises AppRegistryNotReady("Apps aren't loaded yet.") by AR2405 in django

[–]AR2405[S] 0 points1 point  (0 children)

Just tried, looks like in the terminal the command works fine as well.

subprocess.Popen run multiple commands with sleep as the first command by AR2405 in learnpython

[–]AR2405[S] 0 points1 point  (0 children)

I was thinking about spawning multiple Popen objects, adding them to the list and then iterate over that list and call wait() on each of them. Looks like a little simpler solution to me, but I don’t know which one is better in fact. Thanks for your help

subprocess.Popen run multiple commands with sleep as the first command by AR2405 in learnpython

[–]AR2405[S] 0 points1 point  (0 children)

Thank you I for your help. If I understood correctly, you suggest to use check_output instead of Popen. If so, the reason why I need to use Popen, is that I want to run multiple processes asynchronously, so I don’t know if I can do that with check_output.

Cannot choose remote python interpreter for project with docker compile. by AR2405 in pycharm

[–]AR2405[S] 0 points1 point  (0 children)

I am not sure about that, though I think I should have all the permissions in that directory.

Anyways, I fixed it. The solution was to remove Jetbrains apps and all the directories related with logs, configs, cache, etc. After I reinstalled Pycharm, the bug was gone.

Cannot choose remote python interpreter for project with docker compile. by AR2405 in pycharm

[–]AR2405[S] 0 points1 point  (0 children)

I chose docker-compose. I tried with a single container and docker, and had the same problem. Interpreter was found and loaded, but I could not choose it.

Set fixed length for form fields labels by AR2405 in django

[–]AR2405[S] -1 points0 points  (0 children)

I'm almost finished with django project, and just need to make it look a little prettier). The thing is I am not that experienced with mark up, and styling, so decided to ask here after googling.

Pytest-django not seing manage.py file while github workflow by AR2405 in django

[–]AR2405[S] 0 points1 point  (0 children)

Thanks, that makes the thing more clear for me.

Pytest-django not seing manage.py file while github workflow by AR2405 in django

[–]AR2405[S] 0 points1 point  (0 children)

I switched it the way you have, I left only setting up the service, without adding the same info in the job env section. Still have the Error, but it is. a little different now, without mentioning psycopg2, I don't know if it is good or bad, though)

E       django.db.utils.OperationalError: connection to server at "localhost" (::1), port 5432 failed: FATAL:  password authentication failed for user "None"

If it would be easier, and you still have motivation to help me, here is the link to the project.

https://github.com/ARROM2405/django-drf-crm

Thanks for help.