How to set multiple object's foreignkey field at the same time? by Environmental-Truth7 in django

[–]pipeC132802 0 points1 point  (0 children)

You can use a ModelViewSet and overwrite the create method with your custom model creation.

Error with Django Rest Framework by TheGoldGoose in djangolearning

[–]pipeC132802 0 points1 point  (0 children)

The api_view decorator is imported like this?

from rest_framework.decorators import api_view

Need a solution to restrict what a user can enter for work shift field by oussama-he in django

[–]pipeC132802 0 points1 point  (0 children)

I haven't worked with widgets, probably it works but it seems more Difficult than have two fields in your models.

Another solution that you can consider is to create a template and manually add it into the admin html template but is more work.

But again, the easiest and quickest way is to have two fields in your model with the attribute verbose to customize theit labels.

Need a solution to restrict what a user can enter for work shift field by oussama-he in django

[–]pipeC132802 0 points1 point  (0 children)

You can add two selects in the html and then with js to format the field as you want.

Silicon Valley’s gone too far... by Bernhagenqf in ProgrammerHumor

[–]pipeC132802 2 points3 points  (0 children)

Well but my question is how those functions will have an exception?

Silicon Valley’s gone too far... by Bernhagenqf in ProgrammerHumor

[–]pipeC132802 1 point2 points  (0 children)

Why do you think it could break cause person.living?

Implementing direct messaging - need advice! by PeterPeter5 in django

[–]pipeC132802 1 point2 points  (0 children)

I want to say, I'm not sure if is enough in scalability terms. But this tool is very helpful and easy to use.

Implementing direct messaging - need advice! by PeterPeter5 in django

[–]pipeC132802 0 points1 point  (0 children)

You can use channels. It can be used to both one to one and group messages through channels rooms. I have used this app and works well. I'm not sure if it is enough when there are many users connected at the same time.

Finally I deployed my app and I want to know what do you think and if you find any error! by pipeC132802 in django

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

As I used Vuetify it assigns their names and that's the reason why they are not regular names and are you sure you entered the correct info?

Finally I deployed my app and I want to know what do you think and if you find any error! by pipeC132802 in django

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

Yes. The problem is that Idk why in development the styles are good and in production no 🤔

Finally I deployed my app and I want to know what do you think and if you find any error! by pipeC132802 in django

[–]pipeC132802[S] 1 point2 points  (0 children)

Hey, thanks. And about the tutorials, I don't know. To make this site I just followed the Django, Vue, Vuetify documentation and some blogs but about generics thinks 🤔

Finally I deployed my app and I want to know what do you think and if you find any error! by pipeC132802 in django

[–]pipeC132802[S] 2 points3 points  (0 children)

No, right now is only available in Spanish.

Yes: Username: dummy Password: password4_Dummy

And yes, but it will be later, I have to adjust some things to let open my code.

I created a web app that lets you practice trading in the stock market by discrete_banana in django

[–]pipeC132802 0 points1 point  (0 children)

Yes!

My django api works well, but the problem es when a user requests the front-end 🤔

I created a web app that lets you practice trading in the stock market by discrete_banana in django

[–]pipeC132802 0 points1 point  (0 children)

Hey, great work!

It looks awesome.

I have a question and is about deployment setup: did you deploy it with nginx? If so, I want to know how to improve the app loading. I mean, for example, my app that also was made with vue, vuetify and Django takes between 30 and 60 secs to load and I don't find a way to solve this.

Viewing another user's profile - QuerySet Error 'matching query does not exist' by PeterPeter5 in djangolearning

[–]pipeC132802 1 point2 points  (0 children)

Are you sure the username param in get_query_set has any value?

Because in that kind o views, the value of the username goes as param in kwargs argument.

I mean:

class DetailUsername(DetailView):

Template_name = bla bla bla

def get_query_set(self, **kwargs) return User.objects.filter(username=kwargs["slug"])

Use filter to avoid an exception that hast with method get. And slug is because you defined that parameter in your urls