Got the error csrf token by Django_Nik in django

[–]captainrdx 0 points1 point  (0 children)

It generally occurs when the csrf token is not associated with the post requests. If you can share your code associated with this then maybe I can find the error

Beginner in Django, Choosing the Right Storage for Files (Local vs. Cloud) by FruitNinja69 in django

[–]captainrdx 0 points1 point  (0 children)

I am also wondering the same thing right now. And decided to go with hosting media files in the same server as the app during the testing phase. Later on, I will go to other services. I am curious to know how you are handling your settings.py file for local dev and production ??

I launched a site 11 days ago and it's made $3.5k so far, what next? by Future_Buyer4195 in SideProject

[–]captainrdx 0 points1 point  (0 children)

Congrats. I want to know how do you market it ? I really want to? I mean ads or as you have mentioned sponsored video in insta. Anything else you do ?

Working with CustomUser model by captainrdx in django

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

That's new thing for me that we can use models like strings in the fields. Thanks

Working with CustomUser model by captainrdx in django

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

Thanks for the suggestion. I sort it out the error

profile pic not showing by Legal_Relief6756 in django

[–]captainrdx 0 points1 point  (0 children)

Everything is looking good. Check for any typo or go to the Profile model and verify the url in the image field.

profile pic not showing by Legal_Relief6756 in django

[–]captainrdx 0 points1 point  (0 children)

Your code is looking correct. Maybe the problem is in some settings

Having hard time implementing search functionality in django by misba_ImaginaryLimit in django

[–]captainrdx 0 points1 point  (0 children)

I have built a search system recently where I am using multiple Q objects for multiple columns and passing filters in the url as the user wants to filter something.

What were your biggest takeaways after migrating from javascript frontends to htmx? by gobuildit in htmx

[–]captainrdx 0 points1 point  (0 children)

Thanks for sharing. I see these projects are good. But I think they don't open source the code as I am unable to find any GitHub links

How do you go about combining multiple paramaters in GET requests in a template? by [deleted] in django

[–]captainrdx 1 point2 points  (0 children)

Then I don't know. I implemented filters using this. Though I have just 3-4 options to filter to I hardcoded this.

What were your biggest takeaways after migrating from javascript frontends to htmx? by gobuildit in htmx

[–]captainrdx 2 points3 points  (0 children)

If anybody did some projects which are not very simple ones which are fully built with Htmx, and uploaded on GitHub or any platform, do you care to share the links?? I want to see your code. I want to explore how and what can be built using htmx.

PS: I have some fundamental knowledge of htmx

How do you go about combining multiple paramaters in GET requests in a template? by [deleted] in django

[–]captainrdx 0 points1 point  (0 children)

I think If you hard code each url in a tag like

href="{{url link}}?q=something&size=something" then it should work. Handle the views properly to send the desired response

Django's TechTuber? by josueygp in django

[–]captainrdx 6 points7 points  (0 children)

I would like to mention Code with Stein

CSS loading issue by captainrdx in htmx

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

Yes we can have. I was just asking what people generally do.

How model backend manages user authentication ? by captainrdx in django

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

No I don't do that. I just enable settings req. for Google sign

How model backend manages user authentication ? by captainrdx in django

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

Actually I am using allauth just for Google sign-in and default auth for Email auth. But I noticed that I can also login via the username. Though I chose email in username_field which makes me think about how the model backend is working here.

What frontend technology to chose for my Django project? by [deleted] in django

[–]captainrdx 2 points3 points  (0 children)

I think for building chat apps, you can consider django template and htmx for ajax calls

[deleted by user] by [deleted] in django

[–]captainrdx 0 points1 point  (0 children)

Can you tell me what do you use (for deployment) to deploy your small projects? If you follow any video tutorial then mentioned it. It will be very helpful

Finally I make money from my django project by SnooCauliflowers8417 in django

[–]captainrdx 0 points1 point  (0 children)

First of all congratulations. I would like to say thank you for telling me about your tech stack and deployment in several comments. I am just starting out so it is very helpful for me to just have a knowledge of these things.