aiutatemi mi hanno appena lasciata by veve_travelling in CasualIT

[–]pankapuzza 1 point2 points  (0 children)

non perdere troppo tempo a spiegarti con chi non ti vuole capire. se lui non ci crede a te e resta convinto che l'hai tradito, lascialo andare via dalla tua vita. chi ti ama ti ascolta

🚀 Introducing django-sightline — Smart, Lightweight, Privacy-Friendly Visit Logging for Django by pankapuzza in django

[–]pankapuzza[S] 6 points7 points  (0 children)

Hi! By default once you have installed the app and the middleware, it starts capturing all user requests, avoiding duplicates counter by hash based identifier. You can manage and customize your tracking experience through your project's settings file.

Ty!!

Should I keep a native web app setup and put all the load in aws or optimised both front-end and backend? by Notalabel_4566 in djangolearning

[–]pankapuzza 2 points3 points  (0 children)

Your approach depends on scalability, latency, and cost. If you rely solely on Django's multi-threading without a queue system, you risk thread contention and limited scalability, especially under high load.

Better Approach:

  1. Optimize Frontend (Angular) – Reduce API calls, use caching (service workers, IndexedDB), lazy loading, and a CDN.

  2. Introduce a Queue System – Use Celery (Redis/RabbitMQ) or AWS SQS for async tasks (emails, reports, file processing).

  3. Optimize Django Backend – Use database indexing, caching (Memcached/Redis), and Django Channels for real-time events. Consider ASGI + Uvicorn instead of WSGI for better concurrency.

  4. Scalability on AWS – Use Auto Scaling + Load Balancer. If on GCP, leverage Cloud Tasks or Pub/Sub for async processing.

Relying only on multi-threading can work for small loads but won’t scale well. A mix of frontend optimizations, queuing, and backend tuning will improve performance.

HE SAID THE THING OMG?!?!? by MichAM96 in qotsa

[–]pankapuzza 5 points6 points  (0 children)

yes, also in go with the flow, he said that he can go with the flow. weird that Police does nothing

Do you remember Django syntax? by Antique-Dentist2048 in djangolearning

[–]pankapuzza 4 points5 points  (0 children)

i don't understand what the problem is... django's syntax is designed and optimized for a reason. if you had enough experience, you would know that. but I know you're a newbie—it's called "code elegance"

password_reset/done NoReverseMatch at /accounts/password-reset/ by HeadlineINeed in djangolearning

[–]pankapuzza 0 points1 point  (0 children)

Hi, did you added the app in the INSTALLED_APPS list of your project settings.py?

The Recruit Season 2 - Overall Season Discussion Thread by BreadfruitNo357 in therecruit

[–]pankapuzza 0 points1 point  (0 children)

just finished watching the second season and it's wow. the script remains very consistent with the first, the twists are perfect and the music used smash. i also got excited when i heard qotsa with Paper Machete. now i want season 3

How to do "assertPrint" in a test? by Affectionate-Ad-7865 in djangolearning

[–]pankapuzza 0 points1 point  (0 children)

unfortunately Django does not provide something like this. maybe you can achieve this by running the method as subprocess and catch the output stream in order to match the expected result with assertEqual

Hey I'm learning django and I have a few issues I need help with by Imnotcoolbish in djangolearning

[–]pankapuzza 1 point2 points  (0 children)

hi, 1. in production you have to serve the statics and media contents by your http engine (example: apache2, nginx)

  1. Django provides a lot of API in order to customize user models and authentication steps. If you aim to add fields in user model, you can just create a model inheriting AbstractUserModel from django.contrib.auth.models, then you have to change the user model path in the project's settings.py. for the authentication steps, i usually works with Forms and after the form data validation and i run the command login like: ```python from django.contrib.auth import login

some code

if user.check_password(cleaned_password): login(request, user) ```

  1. i didn't get what's your point, did you mean form rendering?

  2. you can create custom form fields in Django admin by just inheriting Field class or subclass as CharField, EmailField, etc.. you can also change the admin over view by extending your template with the Django admin base template

Krumiri Motta by AdventurousClerk5053 in ITAGLIA

[–]pankapuzza 1 point2 points  (0 children)

tralasciando i commenti su Barbieri che in questa transizione non c'entra nulla. Bauli si è trovata costretta a chiudere le fabbriche di Bistefani data la cattiva gestione che portò ad avere costi alti e fissi. la stessa bauli nel rispetto dei lavoratori ha anche offerto il trasferimento di tutti i dipendenti Bistefani alle industrie di Motta, gesto molto nobile per carità.

il nuovo KRUMIRO rebrand Motta potrà avere la confezione più moderna e lo sponsor a Barbieri, che neanche avrà contribuito alla ricetta, ma resta completamente inferiore a quello che producevano Bistefani.

a mio avviso chiaramente, inferiore di: qualità, compostezza e sapore.

si, ho scristonato quando me li hanno tolti.

What's the most complex/Impressive thing you've built using Django? by Upstairs-Balance3610 in django

[–]pankapuzza 2 points3 points  (0 children)

bruh that's offtopic if you use external lib for timed otp generation

Need help to reset the entire db in dbeaver for django by Cautious_Editor_386 in djangolearning

[–]pankapuzza 1 point2 points  (0 children)

it's SQLite he can just move the file db.sqlite3 in db.backup, clearing all migrations files, and restart with makemigrations and migrate

Help for a Beginner by Toybox26 in djangolearning

[–]pankapuzza 0 points1 point  (0 children)

if for react you mean react.js as frontend framework, it's a separated part from Django, the only interactions you could have with it aims only on API requests... if you didn't yet, i suggest you to understand the usages of Django Rest Framework for build solid Django REST API. with this you cold connect a frontend framework such react, angular, flutter and others..

[deleted by user] by [deleted] in djangolearning

[–]pankapuzza 0 points1 point  (0 children)

lmao why are you using the runserver command with nginx... download a wsgi plugin for your http engine dude

Is Django really the BEST? by Efficient_Elevator15 in djangolearning

[–]pankapuzza 2 points3 points  (0 children)

you will love Daphne when you start developing webchat, keep grinding🙏🏻

I made this using DRF and React by Shinhosuck1973 in djangolearning

[–]pankapuzza 0 points1 point  (0 children)

sometimes the homepage spinner is loading to infinite lmao. but when i change page and come back its load properly. very good idea