Re: Create email template with the click of a button

2021-04-17 Thread Sebastian Jung
Hello, Emailfield is nothing other then a normal InputField but later with a special validator. I would take InputField then write your own Validator where you split input commasparated an validate every address with a regex. https://stackoverflow.com/questions/3217682/checking-validity-of-email-

Re: module not found

2021-04-27 Thread Sebastian Jung
Hello, You Install Django package with pip Install but you need with python3 pip3 instead of pip. Regards Théodore KOSSI schrieb am Mo., 26. Apr. 2021, 13:40: > can you help me for this problem? > > -- > You received this message because you are subscribed to the Google Groups > "Django users"

Re: Filtering OR-combined queries

2021-04-30 Thread Sebastian Jung
Take q for or Filterung: https://stackoverflow.com/questions/6567831/how-to-perform-or-condition-in-django-queryset Shaheed Haque schrieb am Fr., 30. Apr. 2021, 02:43: > Hi, > > I have a query which ORs some selects on a single table together like this: > > jurisdiction = 'aaa' > qs = Buss.obje

Re: use of annotate in django query

2021-06-02 Thread Sebastian Jung
Hi Eugene, Please make Print(report.query) then you get SQL querys and Most of time i get an Idea what's wrong Regards Eugene TUYIZERE schrieb am Mi., 2. Juni 2021, 21:41: > Dear Team, > > I need help. I am working on a project where one of the tables is about > requests. I want to have a repo

Re: Sending emails with a name over 75 characters

2021-06-07 Thread Sebastian Jung
Hello Nicolás, i would take another smtp python client to do that. But i am not 100% sure that you don't have here the same problem... Regards Am Mo., 7. Juni 2021 um 17:46 Uhr schrieb Nicolás Gustavo Bruna < bruna.nicolasgust...@gmail.com>: > Hello, how are you? > > I am having trouble sendin

Re: My first django project works in mylaptop, locally, but not when deployed

2021-06-08 Thread Sebastian Jung
Hello Venezuela, please open url http://127.0.0.1:8000/hola... this is think works... Regards Am Di., 8. Juni 2021 um 22:24 Uhr schrieb Douglas Lopez < douglaslopez2...@gmail.com>: > Maybe some body can help on this. > > I have a very simple apps ("Hello work"). See mysite.zip attached. > Then

Re: CHOICES

2021-06-13 Thread Sebastian Jung
Hello, i think this is the right answer: from django.db.models import Sum ModelName.objects.filter(field_name__isnull=True).aggregate(Sum('field_name'))# returns {'field_name__sum': 1000} for example Am So., 13. Juni 2021 um 12:04 Uhr schrieb www.forum-gh.com < ladamo...@gmail.com>: > Hello f

Re: Adding Two Models In Django

2021-06-15 Thread Sebastian Jung
Hello, You create all modelfields inkl. Total sum and after user submit Form with 2 fields in save() Method you sum both fields together ans write this in total field... Regards Ridwan Adeyemo schrieb am Di., 15. Juni 2021, 20:34: > How do I add two models together in the database, two differe

Re: How can i start to learn django?

2021-06-15 Thread Sebastian Jung
At beginnig Django Girls Tutorial ist a good start in my opinon https://tutorial.djangogirls.org/en/ anil9...@gmail.com schrieb am Di., 15. Juni 2021, 14:27: > You can try freecodecamp.org's youtube channel if you like to learn from > videos else Django docs are also great. > > On Sunday, 13 Jun

Re: Help

2021-06-15 Thread Sebastian Jung
Good luck to be an expert in Django in only one Montag Inside Believer schrieb am Mo., 7. Juni 2021, 18:21: > Sir I'm internee i know python my company has assigned me bugs to resolve > in live project but i have not didn't experience of Django. Anyone who can > help me how to find bugs destinat

Re: Admin TypeError - Cannot call delete() after .distinct()

2021-07-02 Thread Sebastian Jung
Hello Mike, i don't understand why you want make a delete from a distict... Then you delete random entrys. When you want do delete dupletes then this is a wrong method to delete dupletes... Regards Am Fr., 2. Juli 2021 um 08:03 Uhr schrieb Mike Dewhirst < mi...@dewhirst.com.au>: > Trying to del

Re: Django help| Urgent | how to find the frequency of a string for each word using django admin?

2021-07-09 Thread Sebastian Jung
Hello Peter, ich would make it with a signal. Here a another example to use a post save signal: from django.db.models.signals import post_savefrom django.dispatch import receiver class TransactionDetail(models.Model): product = models.ForeignKey(Product) # method for updating@receiver(post_s

Re: Hiii Every one

2021-07-15 Thread Sebastian Jung
Hello, In germany we have a provider where you get a root server for 7€ with 2 cores. Name is netcup. Linux is allready preinstalled... This server are fast and much cheaper than amazon server Regards Mahendra schrieb am Do., 15. Juli 2021, 18:38: > Which is the best hosting platform for Pytho

Re: Added new column to model and run migrations but not applied to database table

2021-07-20 Thread Sebastian Jung
Is in settings.py also in installed app? Without that migrations don't work Salima Begum schrieb am Di., 20. Juli 2021, 19:00: > Hi , > Thank you for your responses. > I have tried all the ways Which you people suggested I am not getting any > error while running makemigrations or migrate and >

Re: Can anyone help me

2021-07-28 Thread Sebastian Jung
Hello Nagaruj, Here in this forum you get help on specific problem but when you search a people how help you develop such a page then you find on upwork developer fast and cheap. If you want to make it self then several tutorials exists. Regards Nagaraju Singothu schrieb am Mi., 28. Juli 2021,

Re: HELP

2021-07-28 Thread Sebastian Jung
Hello, You need login page. Tutorial here https://learndjango.com/tutorials/django-login-and-logout-tutorial Regards Toure Said schrieb am Mi., 28. Juli 2021, 18:42: > I have connection data in my mysql database and I want to connect with > credentials in the database using django > > -- > You

Re: HELP

2021-07-28 Thread Sebastian Jung
-set-up-django-environment-in-linux-for-beginners-35am Regards Sebastian Jung schrieb am Mi., 28. Juli 2021, 19:30: > Hello, > > You need login page. Tutorial here > https://learndjango.com/tutorials/django-login-and-logout-tutorial > > Regards > > Toure Said schrieb am M

Re: Can anyone help me

2021-07-28 Thread Sebastian Jung
Hello, I have start with django girls tutorial. This is a relative easy start with a simple app. But i think after this you are able to develop your app. https://tutorial.djangogirls.org/en/ Regards Nagaraju Singothu schrieb am Mi., 28. Juli 2021, 15:51: > Dear friends, > > I'm new to django,

Re: Own Widget as Stadard

2021-08-01 Thread Sebastian Jung
Hello Christian, Thanks for your response but your solution is not suitable for my problem. Regards Christian Ledermann schrieb am So., 1. Aug. 2021, 20:42: > https://adamj.eu/tech/2021/05/05/3-uses-for-functools-partial-in-django/ > > "Here are a few ways I’ve used partial in Django projects.

Re: Django Discord

2021-08-10 Thread Sebastian Jung
Hey, This is the same question as where i can find django on telephone... Regards Lloyd Dube schrieb am Di., 10. Aug. 2021, 21:34: > Hi everyone, > > Where can I find Django on Discord? > > TIA. > > > Regards, > ~ Lloyd > > -- > You received this message because you are subscribed to the Googl

Re: Display Hierarchical Categories in Django Admin

2021-08-12 Thread Sebastian Jung
Hello Rahul, i Django MPTT tutorial you find in modely.py: from django.db import modelsfrom mptt.models import MPTTModel, TreeForeignKey class Genre(MPTTModel): name = models.CharField(max_length=50, unique=True) parent = TreeForeignKey('self', on_delete=models.CASCADE, null=True, blank=T

Re: DateField is a string in model instance instead of datetime object

2021-08-29 Thread Sebastian Jung
Hello, I think this behaviour is absolut normal. When you create on a databasesystem a datefield and make a insert with this field with string '2021-08-21' then databasesystem convert this string automatical into date... So i think this has nothing to do with python/django and this behaviour i wo

Re: Greetings to Everyone

2021-09-15 Thread Sebastian Jung
Hello, answer ist relativ simple: Code: abt = {"About_slides":About_slides,"Description":Description} return render(request, 'about.html') you don't insert context in render. Right line: return render(request, 'about.html',abt) Regards Am Mi., 15. Sept. 2021 um 14:05 Uhr schrieb Rich

Re: Django Query

2021-10-04 Thread Sebastian Jung
Hello Eugene, I think that django mptt can Store and display such a tree. Regards Eugene TUYIZERE schrieb am Mo., 4. Okt. 2021, 20:29: > Team, > > Assume you have 3 tables PROVINCES, DISTRICTS, and SECTORS and you have > Province, District and Sector field names respectively in each table. > >

Re: Road Map for a newbie

2023-08-17 Thread Sebastian Jung
Hello, At the beginning i read much tutorials about function based django. It is on beginning a little bit easier because you understand how a list-, create-/update- and deleteview works. For little project this approach is fine. I waste with function based aproach too much time because i extend m

Re: Django Resolve Choices Class

2023-08-31 Thread Sebastian Jung
Thank you it is working. Wonderful Andréas Kühne schrieb am Do., 31. Aug. 2023, 20:03: > If you want the string instead of the value, you just use: > entity.get_gender_display() > > Django automatically adds these "magic methods" when you have fields that > have choices. > > You can see this in

Re: Mysql for Django

2023-09-24 Thread Sebastian Jung
Hello, in Linux and Mac you can use DBeaver https://dbeaver.io/download/ This is great app for administration of all DBMS. Regards Am So., 24. Sept. 2023 um 22:50 Uhr schrieb Lakhjeet Samra : > Hi Guys, > I am new to Django > I use Mac , > I am unable to down mysqlclient for Django project a

Re: Postgres connection error

2023-10-08 Thread Sebastian Jung
GRANT ALL PRIVILEGES ON DATABASE knapds TO system; Don't give all rights. This is very strange in PostgreSQL Pranav Sawant schrieb am So., 8. Okt. 2023, 16:24: > *Hey all, I am new to django* > *and i want to connect to postgresql * > > *what I have doing:* > > *At postgres plsql* > CREATE DAT

Re: Hello World!

2023-10-14 Thread Sebastian Jung
Write raise Exception ("New Error") im your views.py Then you have a exception oduwole samuel schrieb am Sa., 14. Okt. 2023, 15:12: > How can I become an execpt in Django > > > On Sat, Oct 14, 2023, 2:05 PM Adesewa Lola > wrote: > >> i have an issues with my django site >> >> All i want to do i

Re: Django hosting

2023-10-16 Thread Sebastian Jung
You can view query like list = models object.filter() And then printout list.query Mansour Abdullahi Abdirahman schrieb am Mo., 16. Okt. 2023, 13:13: > We have a DatetimeField in our modal , when we want to filter the month ( > only the month ) we could do something like this: > > *MyModal.obje

Re: Encrypt entire Django project and decrypt in ram to start server.

2023-11-14 Thread Sebastian Jung
I think this here are a good solution where you can build all files as .so files which i think are c files. https://stackoverflow.com/questions/32577864/cython-for-a-django-app-would-it-work Daniel Martinez schrieb am Di., 14. Nov. 2023, 15:17: > A solution for that is add a IP blocker in your

Re: activate source my_env/bin/activate

2023-11-15 Thread Sebastian Jung
Linux is case sensitive... Try source william Kachuma schrieb am Mi., 15. Nov. 2023, 16:31: > good day > > i am experiencing problem when trying to activate my_env, can someone > please assit me > > Command 'Source' not found, did you mean: > command 'gource' from deb gource (0.54-1) > Try: su

Re: GeoDjango Hosting

2023-11-15 Thread Sebastian Jung
Hello, Take a VPS when you don't need hugh amount of ressources. We have in germany netcup atarts with 3,25€ with 40 GB ssd and you can install every OS what you want or when you need much more ressources then a root server with dedicate CPU. Starts from around 10€ per month with 4 high end cores,

Re: GeoDjango Hosting

2023-11-16 Thread Sebastian Jung
No no please don't go to digital ocean.. I know many people how have much problems... No dedicated cpu.. no fix ressources... No go... IKT Service schrieb am Do., 16. Nov. 2023, 16:35: > Try digital Ocean > > tor. 16. nov. 2023 kl. 15:17 skrev Ernest Okiya : > >> Hello. GCP will work best for y

Only for specific region

2019-07-29 Thread Sebastian Jung
Hello, I want that my Website only German user can Open it and another User from Others Region a template Show, that they Not live in Germany. Regards -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop rec

Show all images per Profile

2019-08-11 Thread Sebastian Jung
Hello, i have a extend User Model like this: class Profile(models.Model): user = models.OneToOneField(User, on_delete=models.CASCADE) telefon = encrypt(models.CharField(max_length=70,default="",null=True)) and a class with documents incl. fotos: class Document(models.Model): profi

Re: Please help me to solve the error

2019-09-01 Thread Sebastian Jung
Hello, You must create another url.py under your App polls. Regards Manas Sanas schrieb am So., 1. Sep. 2019, 15:37: > There is an error when i add url to url.py. The url.py file is as follow- > from django.contrib import admin > from django.urls import path, include > > > urlpatterns = [ >

Re: Hosting Recommendations?

2024-12-06 Thread Sebastian Jung
IT IS everytime Same you can get a normal virtual root Server which IS Most time cheap. You get very good Power for Money in Netcup Provider but there you must Setup self Linux, nginx and your Project. Otherwise you can get AWS and similat where you get managed Server but with much Higher cost on

<    1   2