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

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

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:

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: 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: > >

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

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

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

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: 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

Re: CreateView for non default database

2023-07-26 Thread Sebastian Jung
Hello , I found this tutorial: https://dboostme.medium.com/using-django-with-multiple-databases-introduction-8f0ffb409995 But i self don't use several databases Regards Muhammad Juwaini Abdul Rahman schrieb am Mi., 26. Juli 2023, 05:11: > Hi all, > > I have two different databases as below:

Re: Need to trigger action on 4th Saturday of the month

2023-07-25 Thread Sebastian Jung
Very cool solution chetan. I think i should try it. Thank you Chetan Ganji schrieb am Di., 25. Juli 2023, 22:56: > Hi Mr Cain, > > This would make more sense to me! > https://django-celery-beat.readthedocs.io/en/latest/ > > You could create background tasks to create background tasks that run

Re: Own documentation in django

2023-07-14 Thread Sebastian Jung
Hello chetan, I know django very much also aaciidoc. Problem is that asciidoc have cool features like automatic create TOC or count Images and tables an further more but uf you want to create a template for a include where i render a Image then you can only use veriables in this template very

Re: In Need of Collaboration With a Django Dev in Europe

2023-06-20 Thread Sebastian Jung
Hello Ome, I open zerotenweb.com.ng and no https security. When i force https connection then i get security risk error. All .js,.jpg etc.pp. are not loading. I am sorry but i think when you are not able to implement your own website then you couldn't make a website for european customer. Sorry

Re: Demonstration of patching against CVE-2023-31047

2023-06-12 Thread Sebastian Jung
Use django >= 4.2.1 https://security.snyk.io/vuln/SNYK-UBUNTU2204-PYTHONDJANGO-5492023 5t00 schrieb am Mo., 12. Juni 2023, 20:32: > Hi all, > > I am new to Django and am looking to demonstrate how the application of a > Django patch can prevent against multiple file uploads in light of the >

Re: Translating a Django website

2023-06-12 Thread Sebastian Jung
Because for professionel website no one use automatic translation... Vishesh Mangla schrieb am Mo., 12. Juni 2023, 11:22: > Why don't you use Google translate api? > > On Mon, 12 Jun, 2023, 14:36 אורי, wrote: > >> Hi, >> >> I have a website in English and Hebrew which I want to translate into

Re: template css issue

2023-06-07 Thread Sebastian Jung
Please view in outlook original html source code and compare Email your private Environment with production server. Then you should see difference Praveen Chaudhary schrieb am Mi., 7. Juni 2023, 08:38: > Hello Everyone, > > Hope you are doing well. I want a small favor from you guys. > Here I

Re: I want help from senior python/django developer to create one django assignment project.

2023-06-05 Thread Sebastian Jung
Hey, I am not senior django developer but this task sound relativ easy. What is your problem? As senior it must be clear how you can create API endpoints and create CRUD for different models or? AKHIL KORE schrieb am Mo., 5. Juni 2023, 19:05: > Hi django developer group. > > I'm from india. I

Re: Django date time picker

2023-05-29 Thread Sebastian Jung
Solution from Sun abiut is only beginning. Now you must insert in html code that you import a javascript datetime picker and activate it on all fields with class datepicker sum abiut schrieb am Mo., 29. Mai 2023, 23:35: > You can use model forms and do something like this: > 1) create your

Re: Django BS elements layout

2023-05-29 Thread Sebastian Jung
I don't think that this is a django relevant thing Hatim Ibrahim schrieb am Mo., 29. Mai 2023, 17:31: > Hello > AM on WIndows 7, Django 3.2.18, Bootstrap 5.2 > I have the attached "column" layout, > I want to redesign this as "array" layout. > > What is the most deficient way of doing this

Re: dynamic django tables

2023-05-22 Thread Sebastian Jung
Hello, I take everytime a EAV implementation for this task. Hete a manual: https://django-eav2.readthedocs.io/en/latest/ I hope this helps you Helly Modi schrieb am Fr., 19. Mai 2023, 14:59: > How to create dynamic models in django rest framework? > > Is there any chance to create dynamic

Re: Django Translation won't work

2023-05-21 Thread Sebastian Jung
I have delete complete django.po file and make new one and only make a translation for Gender to Geschlecht and same thing happens that in Englisch Language and in German Language both show Geschlecht... Am So., 21. Mai 2023 um 20:36 Uhr schrieb sebasti...@gmail.com < sebastian.ju...@gmail.com>:

Re: i need to learn more on django

2023-05-11 Thread Sebastian Jung
P.s. youtube is not good because you can't copy source code from YouTube Naomi Gentle-idyee schrieb am Fr., 5. Mai 2023, 18:48: > i just got started on django and though it looks complicated, i am told i > can learn it which i know its possible.so joining this community should > help me achieve

Re: i need to learn more on django

2023-05-11 Thread Sebastian Jung
Hello naomi, When i start i start with simple function based Views but later i see this you should only use on beginning to understand whats happen in listview, updateview, createview and deleteview. Many things in django we use class based views which makes things much much easier. Here a

Re: Is programming in Django intellectually satisfactory

2023-04-27 Thread Sebastian Jung
Yeah but it exists frustrating things. For example left outer join is not easy to make this with django ORM... But for most things you found good and easy solutions... I love django Alec Delaney <96alecpatr...@gmail.com> schrieb am Do., 27. Apr. 2023, 05:28: > I love it > > On Wed, Apr 26, 2023,

Re: Tutorial for a Django web store

2023-04-14 Thread Sebastian Jung
Get django oscar sandbox and most things are allready implemented Michael Starr schrieb am Mi., 12. Apr. 2023, 08:02: > Does anyone know of a good tutorial (preferably with github files) that > teaches you how to make a web store in Django? It seems like a basic > literacy skill for Django

Re: Report a Django bug how

2023-04-14 Thread Sebastian Jung
I have no Problem with Display Images. Most time i think this is a missconfiguration in settings.py Michael Starr schrieb am Fr., 14. Apr. 2023, 01:06: > Hi, I double checked my code and Django is not displaying images. I'd like > to report the bug but I need to be a django employee to do that.

Re: Beginner: How to find fields that can be over-ridden in a Generic Class Based Views

2023-04-11 Thread Sebastian Jung
Hello Plkt i have no idea what you mean and what is the aim sorry PULKIT AGRAWAL schrieb am Di., 11. Apr. 2023, 14:44: > Hello Everyone, > > I am very new to Django and am still learning the ropes. If anyone can > point me in the right direction, I will be thankful to you. > > My problems is as

Re: Building a modular app?

2023-04-02 Thread Sebastian Jung
Hello, I would use database replication where tables are sync between 2 databases... Regards 'Simon Connah' via Django users schrieb am So., 2. Apr. 2023, 16:26: > Hi, > > I want to make a blogging platform and have a question about organising > the project. > > With my blog, I'll have the

Re: django multi databases and multi sessions

2023-03-20 Thread Sebastian Jung
I think you mean multi tenancy... There are packages for that. Google after django multi tenant.. WM schrieb am Mo., 20. März 2023, 16:08: > Hi, > > I would like to have your help. > > Using Django multiple databases in a project, can I create multiple > sessions in the project? If so, I would

Re: How to fight Russia in America

2023-03-12 Thread Sebastian Jung
Please stop this propaganda... This haven't nothing to do with django Michael Starr schrieb am So., 12. März 2023, 23:20: > Russia's influence in America is powerful. How do you fight it? > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group.

Re: Please i need help in creating a Login page with Django

2023-01-19 Thread Sebastian Jung
I think this is a good start or? https://github.com/earthcomfy/Django-registration-and-login-system Namanya Daniel schrieb am Do., 19. Jan. 2023, 15:00: > Explain where you’re failing exactly, is it views, forms, templates or > models > > On Thu, 19 Jan 2023 at 01:56, Michael R. KOOMSON >

Re: Django Internationalization

2022-11-26 Thread Sebastian Jung
Only 1 line or you make a break with double quotes and makes behind Dhrub Kumar Sharma schrieb am Sa., 26. Nov. 2022, 17:59: > I am getting problems with {% trans " "%} when implementing with > paragraph. Will anyone help me how to fix it to translate paragraphs > correctly in template and

Re: Need to Replace django default I'd with UUID field

2022-11-22 Thread Sebastian Jung
You have also relations like foreignkey to this table? Then you must replace also all ids from foreignkey to new uuid Not simple this task Am Di., 22. Nov. 2022 um 19:55 Uhr schrieb Rajesh Kumar < rjcse131...@gmail.com>: > Hi everyone! > Hope everyone is doing well... > > Actually I have

Re: Help with understanding django-oscar

2022-11-21 Thread Sebastian Jung
y I took a look at the sample project and I'm already familiar with it > what I need is some more examples of how to add apps to the dashboard > config file ive read the docs a lot I'm just not clear on how to implement > it > > On Mon, Nov 21, 2022, 6:39 PM Sebastian Jung > wro

Re: Help with understanding django-oscar

2022-11-21 Thread Sebastian Jung
Here are sanbox project with i have start https://github.com/django-oscar/django-oscar/tree/master/sandbox Good luck. On beginning absolut chaos because many things are not so as you know. For example show in apps.py this is absokut different as i know with urls.py. Or that models.py connects to

Re: Help with understanding django-oscar

2022-11-21 Thread Sebastian Jung
Hello Leslie, I am know many things in django oscar. Please ask if yoz have questions. Regards Leslie Taffe schrieb am Di., 22. Nov. 2022, 00:30: > Hey so i'm a new dev looking into utilizing Oscar but a lot of things in > the doc aren't clear to me if anyone would be willing to just show me

Re: Quiz app

2022-11-16 Thread Sebastian Jung
Hello Lakshyaraj, I would create a app quiz with model quiz with a charfield. Then when get open 8 would get highesr id from model then randomizer and then get from database entity with this id. When you need 5 then get list of random 5 ids in this range and get all from database. Then yoz

Re: Hosting Django App

2022-11-08 Thread Sebastian Jung
Hello Mh, it is relative easy. You need a root access to a linux server in internet. Here is a very good tutorial how to setup: https://www.digitalocean.com/community/tutorials/how-to-set-up-django-with-postgres-nginx-and-gunicorn-on-ubuntu-22-04 If you have problems then write you on which

Re: HOW TO GET DJANGO MODELS FIELD VALUE FROM MODEL OBJECT IN TEMPLATE TAGS-DJANGO

2022-11-06 Thread Sebastian Jung
Pls write us your aim with this code... Kala Rani schrieb am So., 6. Nov. 2022, 12:15: > my models.py > > class Locations(models.Model): > region = models.ForeignKey(Regions, > on_delete=models.CASCADE,blank=True,null=True) > name = models.CharField(max_length=255) > active_flag =

Re: New to Django

2022-11-02 Thread Sebastian Jung
Hello kevin, There are several django booking apps like this https://github.com/bernii/django-reservations I think its easier to change existing code to your requirements then begin from strech. Good luck Kevin gallagher schrieb am Mi., 2. Nov. 2022, 18:04: > Hi guys, > Im currently learning

Re: In need of a Technical Mentor

2022-10-27 Thread Sebastian Jung
Hello, Perhaps it is better to view here in Forum questions and when you want help then write Back. Then you can get more experience. Also yoz should make a upworks account as developer. On beginning with low hourly rate to get good Reviews. And after a time you have more experience and get

Re: Regarding Django forms

2022-09-23 Thread Sebastian Jung
for a beginner easy... So far make what you want Nishant Sagar schrieb am Fr., 23. Sept. 2022, 13:40: > I want to make my form save files to a database without using the django > form > > On Fri, 23 Sep 2022 at 12:52 PM, Sebastian Jung > wrote: > >> Do you want change only a form or

Re: Regarding Django forms

2022-09-23 Thread Sebastian Jung
Do you want change only a form or do you want also change widgets in this form? Nishant Sagar schrieb am Fr., 23. Sept. 2022, 08:32: > Hey Sebastian, > > That’s not my concern, all I want to know is, whether is it advisable to > implement the form such a way or Django fo

Re: Regarding Django forms

2022-09-23 Thread Sebastian Jung
Hello, I would hire on upworks a cheap developer how show you how to implement such thing. This is relative easy when you know how it works Regards Nishant Sagar schrieb am Fr., 23. Sept. 2022, 07:57: > Hey forks, > > I’m in little dilemma regarding Django forms. I'm working on a project as >

Re: converting CURL command

2022-08-21 Thread Sebastian Jung
https://reqbin.com/req/python/c-xgafmluu/convert-curl-to-python-requests Am So., 21. Aug. 2022 um 23:27 Uhr schrieb lone...@gmail.com < loneso...@gmail.com>: > Hello all, > >I am interested in converting the CURL command of: > > curl 'https://www.walmart.com/chcwebapp/api/receipts' \ -H

Re: How to use JS in Django?

2022-08-16 Thread Sebastian Jung
Hey. Inspect website with browser and then view in console there are errors and in code wether yoz see block Regards Matheus Bon schrieb am Di., 16. Aug. 2022, 22:09: > Hello friends > > I'm new to Django and I'm having trouble using JS. > > I want to create a sidebar

Re: Hi guys how to run pyscript on local webserver without using cdn ljnk

2022-07-29 Thread Sebastian Jung
Is it a joke? Please write a description which Problem you have... Ad Tariq schrieb am Fr., 29. Juli 2022, 16:58: > > > Sent from my Huawei Mobile > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop

Re: Remote database using ssh

2022-07-19 Thread Sebastian Jung
Hey, This is easy and have nothing to do with django. Yoz must make port forwarding over ssh from postgres port. https://superuser.com/questions/1213886/how-to-open-port-via-ssh-tunnel Regards Wennie Catabay schrieb am Di., 19. Juli 2022, 17:32: > Hello, > > I am stuck on defining how to

Re: Best digital ocean plan for a production server

2022-07-11 Thread Sebastian Jung
Hello, Digital Ocean is for mid to great companys very nice because scalability. But if you don't need that then digital ocean is too expensive. My favorit https://www.netcup.de/vserver/ with 8GB Ram and Epyc CPU for only 9€ per month. I think this is much much more faster then same price range

Re: Looking for experienced Django backend engineer

2022-07-04 Thread Sebastian Jung
Have anyone experience with Django Oscar package then i need a New implementation. Write me to sebastian.ju...@gmail.com 16-451 S.Kalyan schrieb am Mo., 4. Juli 2022, 22:47: > Sir, Please look after freshers sir please. > > On Mon, Jul 4, 2022, 3:59 PM Miracle wrote: > >> Hi Anderson, >> >> I

Re: Need some help

2022-06-26 Thread Sebastian Jung
You can make it easy with javascript on event change on select field then get selected option and write value to input field. You can google for a solution how yoz can get value from a select field on change event Ryan Nowakowski schrieb am Mo., 27. Juni 2022, 00:37: > If you want the initial

Re: About Specific User Login

2022-06-17 Thread Sebastian Jung
Hello, Yoz get per query userdata and then wrotes it as further contrext https://vsupalov.com/pass-context-to-django-cbv/ Then you can render this in your template. Abhinandan K schrieb am Fr., 17. Juni 2022, 18:27: > use django icontains > > On Fri, Jun 17, 2022, 9:27 PM Shubham Mendade >

Re: Does django supports dynamic allowlist in EmailValidator

2022-06-14 Thread Sebastian Jung
Hello, You can create a new validator where domains are validate and insert it as second validator. Regards Sencer Hamarat schrieb am Di., 14. Juni 2022, 15:16: > Hi, > > Say, I have an email field in a model and need to add an email validator > for email domain validation. > For this,

Re: Having Trouble Creating a Test Database

2022-06-07 Thread Sebastian Jung
Do you have make manage.py migrate and afzer this manage.py makemigrations? Mark Phillips schrieb am Di., 7. Juni 2022, 17:02: > I can't seem to be able to create a test database for my django project. I > get this error: > > django.db.utils.ProgrammingError: (1146, "Table >

Re: Supertypes, subtypes and authentication

2022-03-24 Thread Sebastian Jung
Helli Anne, Authirization is automatical implemented in django. You need a login page and ggf. A Registration page. https://ordinarycoders.com/blog/article/django-user-register-login-logout This has nothing to do with a relationship from article to a User or a node. Regards Regards

Re: runserver not working

2022-03-22 Thread Sebastian Jung
Hey, I think yoz don't have installed django package. Please install it over pip install django Regards 'Delvin Alexander' via Django users schrieb am Di., 22. März 2022, 06:07: > would anyone know why my "manage.py runserver" is not working? > > Every time i try running it on the command

Re: Got an error creating the test database: database "" already exists

2022-03-16 Thread Sebastian Jung
Hey salima, This error is strange. Django try to use a Relation in postgresql which doesn't exist. I have only tip that you cam reset database. I would delete database in postgresql and create it new with psql tool. After this you must reset all migrations:

Re: An error with my code

2022-02-26 Thread Sebastian Jung
Hey, I thinn you have in your settings.py in installed app a app named polls. Django can not found such a package polls... Now you must install this package or remove it from settings.py Regards Kin Zinzombe schrieb am Sa., 26. Feb. 2022, 16:06: > ^[[23~Traceback (most recent call last): >

Re: Email verification

2022-02-23 Thread Sebastian Jung
Hey, a tutorial you find here: How to Signup User and Send Verification Email in Django - Django Tutorial (studygyaan.com) Am Mi., 23. Feb. 2022 um 16:34 Uhr schrieb Rushikesh Chavan <

Re: How to validate xl data

2022-02-14 Thread Sebastian Jung
Hello, Validation is very easy in django. Here a tutorial http://www.learningaboutelectronics.com/Articles/How-to-create-a-custom-field-validator-in-Django.php Sujata Aghor schrieb am Di., 15. Feb. 2022, 06:24: > Hi Prashant, > If you are talking about server side validations, then you can do

Re: Ajax call not working with X-editable

2022-02-14 Thread Sebastian Jung
Hello, You must send in all post and ajax post everytime CSRF Token. Please try it. When you send it which response you get from django? Regards Sujata Aghor schrieb am Mo., 14. Feb. 2022, 07:03: > Hello Django lovers, > > I am trying to use inline edit using X-editable >

Re: How to trigger a function with an update view

2022-02-13 Thread Sebastian Jung
Hello, You overwright in forms.py in your form save() Example: def save(self, commit=True): instance = super(MyForm, self).save(commit=False) instance.flag1 = 'flag1' in self.cleaned_data['multi_choice'] # etc if commit: instance.save() return instance 'MH' via Django

Re: Name Fields values

2022-02-07 Thread Sebastian Jung
Fix values or should end consumer add/delete values? Feroz Ahmed schrieb am Mo., 7. Feb. 2022, 23:23: > Hi Everyone. > my personal project for marksheet is going on. > > all codes in views are fine > > fields are: > Name > English marks > Science Marks > Computer Marks > Avg > Sum > Total > > i

Re: Django App

2022-02-07 Thread Sebastian Jung
Hello, I think there arw several tutorials in internet how shows yoz how you use django and heroku. When you have a specific question then ask. For professionel environment i wouldn't use heroku but fir Testing Environment for end user is heroku fine. Regards Abdulrahman Abbas schrieb am Mo.,

Re: Ongoing project

2022-02-07 Thread Sebastian Jung
Siddique schrieb am Mo., 7. Feb. 2022, 22:56: > Hello > > Hope all doing well > > Could you please send the GitHub link of your djnago Oscar project. > > Thanks > > On Tue, Feb 8, 2022, 1:27 AM Sebastian Jung > wrote: > >> Hello, >> >> i also make at t

Re: Ongoing project

2022-02-07 Thread Sebastian Jung
Hello, i also make at the moment with django oscar a own website with shop. What do you mean with innovations? Please write me if django oscar is a suitable system for you. Regards Am Do., 17. Dez. 2020 um 12:43 Uhr schrieb Peter Kirieny < kirienype...@gmail.com>: > Hello team > I have a

Re: UNIQUE constraint failed: matrixapp_bookplot.user_id

2022-02-06 Thread Sebastian Jung
Hello, Because your implementation is wrong. Please read this https://tech.serhatteker.com/post/2020-01/uuid-primary-key/ Jason schrieb am So., 6. Feb. 2022, 00:27: > A bit of a hint about your db schema, do you want a user ID to be one to > one with each book plot? also, why is your primary

Re: Help

2022-02-02 Thread Sebastian Jung
You have a package https://pypi.org/project/django-emoji/ installed and now you must in yozr settings.py set this variable Fernando Jover schrieb am Mi., 2. Feb. 2022, 16:26: > Hi guys! > > > > i am learn Pythonand Pycharm show me this: > > > > raise ImproperlyConfigured( > >

Re: web page blank

2022-02-01 Thread Sebastian Jung
Hello, Please try: context = { 'posts': post } 'Delvin Alexander' via Django users schrieb am Mi., 2. Feb. 2022, 06:59: > Hello everyone, > > I am currently following a django tutorial regarding applications. I have > followed through completely but for some reason, when I run

Re: copy value from field1 to field2

2022-01-28 Thread Sebastian Jung
Hello, i think this is easy. When customer submit post data to django and form is valid. then you make following. formentry = form.save(commit=False)formentry.field2 = formentry.cleaned_data['field1'] formentry.save() This is untested but i am very sure that this works Regards Am Fr.,

Re: Queryset in settings.py?

2022-01-28 Thread Sebastian Jung
Luz < bna...@gmail.com>: > Hi Sebastian, I guess this is not possible. > > But the real question is: why do you need a queryset to perform in the > settings? > > Perhaps if you explain what problem you want to solve, we can give you > some options for other possible soluti

Re: Basic upload

2022-01-27 Thread Sebastian Jung
Hey, Here a tutorial https://simpleisbetterthancomplex.com/tutorial/2016/08/01/how-to-upload-files-with-django.html John Dollosa schrieb am Do., 27. Jan. 2022, 15:02: > I can't seem to get the basic upload feature work. > Was trying to access UploadModel.my_upload_field.save but the method >

Re: linebreaksbr doesn't work

2022-01-08 Thread Sebastian Jung
Hello, Write your own filter where you replace all \n with . Then you habe an idea why it would'nt work. Regards ___Maxim.Nesterov___ schrieb am Sa., 8. Jan. 2022, 10:58: > i tried but didn't work > > On Saturday, January 8, 2022 at 4:50:00 AM UTC+3 juw...@gmail.com wrote: > >> Try

Re: CSRF token missing on models with a file/imagefield

2021-12-28 Thread Sebastian Jung
Hello, try in your html template- I think this works... Regards Am Di., 28. Dez. 2021 um 08:26 Uhr schrieb Yorben Verhoest < yorben.verho...@gmail.com>: > So, turn out that the problem occurs because for some reason my > request.POST data is empty. > > I found out because I wrote a custom

Re: On django model.

2021-12-24 Thread Sebastian Jung
did not understand the situation, because with migrations I > don't resolve to convert the database into the model. The process that I > need is the other way around. > I needs for a table created in the database to be included in the model. > > El vie, 24 dic 2021 a las 14:03, Sebastian Jung

Re: On django model.

2021-12-24 Thread Sebastian Jung
Hello, Insectdb is not to generate/update database. Please make it with python manage.py makemigrations and after that python manage.py migrate Please read a tutorial https://tutorial.djangogirls.org/de/ Regards Amor Zamora schrieb am Fr., 24. Dez. 2021, 13:11: > Hi guys. > I have an

Re: render two template at one time in django

2021-12-11 Thread Sebastian Jung
Hello, I think you csn use render_to_string. Then you cah use it to 2 different Templates and can concat both strings abd return string with httpresponse. Why do you don't include second template in First template? This is much easier... Regards VIVEK KUMAR schrieb am Sa., 11. Dez. 2021,

Re: How to approach

2021-11-04 Thread Sebastian Jung
Hello, Take a beginner guide like django girls tutorial. Then begin with your task step for step. It exists many turorials how to build login page with django etc.pp. and when you have a specific Problem then write and i think most of us can help you. Regards Trippy Samurai schrieb am Do., 4.

Re: New user

2021-11-02 Thread Sebastian Jung
Hello, i find in beginning Django Girls tutorial very helpful: https://tutorial.djangogirls.org/de/ Am Mo., 1. Nov. 2021 um 22:24 Uhr schrieb Dalys Lanzas < lanzasda...@gmail.com>: > Hi, I want to learn Django, so if someone now the best way I appreciate. > > -- > You received this message

Re: Initial value is not displayed on forms.DateField with widget input type="date" when localized

2021-10-27 Thread Sebastian Jung
Hello, but why you configure this with a own class? You can configure this in settings.py... Regards Virenfrei. www.avast.com

Re: Initial value is not displayed on forms.DateField with widget input type="date" when localized

2021-10-27 Thread Sebastian Jung
Hello, I think you need a entry in settings.py with USE_L10N = True You can make fix format in settings.py with DATE_FORMAT = 'd.m.Y' Regards binoy...@gmail.com schrieb am Mi., 27. Okt. 2021, 11:07: > Hi > I have a form field forms.DateField and widget as follows > > class

Re: I have an error in django project

2021-10-23 Thread Sebastian Jung
Hello, Please change code: SubCategory.objects.filter(productcategory_id=productcategory_id).order_by('name') To SubCategory.objects.filter(id=productcategory_id).order_by('name') Regards Yabesh schrieb am Sa., 23. Okt. 2021, 17:18: > >

Re: DJNAGO Many to Many field MultiSelect Into DropdownList

2021-10-19 Thread Sebastian Jung
p down. > > On Mon, 18 Oct 2021 at 16:07, Sebastian Jung > wrote: > >> Hello, >> >> then change in widgets Select() to SelectMultiple(). >> >> https://docs.djangoproject.com/en/3.2/ref/forms/widgets/#selectmultiple >> >> Regards >> >&g

Re: DJNAGO Many to Many field MultiSelect Into DropdownList

2021-10-18 Thread Sebastian Jung
ple > values . > currently, it is coming like this: > > On Mon, 18 Oct 2021 at 16:07, Sebastian Jung > wrote: > >> Hello, >> >> then change in widgets Select() to SelectMultiple(). >> >> https://docs.djangoproject.com/en/3.2/ref/forms/widgets/#selectmu

Re: DJNAGO Many to Many field MultiSelect Into DropdownList

2021-10-18 Thread Sebastian Jung
Hello, then change in widgets Select() to SelectMultiple(). https://docs.djangoproject.com/en/3.2/ref/forms/widgets/#selectmultiple Regards Am Mo., 18. Okt. 2021 um 15:51 Uhr schrieb 'Maryam Yousaf' via Django users : > Hi, > > I have one manytomany field in one of my model which is currently

Re: Child data table in Django

2021-10-13 Thread Sebastian Jung
Hello eugene, You have implement also jquery >= 3.5.1 and datatablea.min.js Please show us your html code and javascript code that open row when you click on this item... Regards Eugene TUYIZERE schrieb am Mi., 13. Okt. 2021, 14:05: > Dear All, > > Kindly assist me to have a tutorial or code

Re: SQL query to django

2021-10-10 Thread Sebastian Jung
Hello Eugene, You can also take a raw query... https://docs.djangoproject.com/en/3.2/topics/db/sql/ Regards Eugene TUYIZERE schrieb am Sa., 9. Okt. 2021, 10:52: > Dear all, > > I have a table let call it *YY*. Some fields in this table are status, > time_frame, etc. > time frame is in terms

Re: Re:

2021-10-09 Thread Sebastian Jung
ption enabled. >> >> On Sat, Oct 9, 2021, 12:09 PM Sebastian Jung >> wrote: >> >>> Hello, >>> >>> No only friends get social media or WhatsApp. >>> >>> I think yoz need a experience developer. Try to get one developer on >>

Re:

2021-10-08 Thread Sebastian Jung
Hello, Your app tries to insert a new entry in table auth.users. in this table a User exists with id=2 and you get this constraint error. Please truncate auth.users table and try it again. Regards ola neat schrieb am Fr., 8. Okt. 2021, 18:12: > Hello guys > I've got this issue i don't

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: 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

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

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,

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

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

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: HELP

2021-07-28 Thread Sebastian Jung
-to-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: 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 > > -- >

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

  1   2   3   >