Python Database Migration Tool

2024-02-29 Thread sebasti...@gmail.com
Hey, i have 2 different database systems. In source postgresql and target MS SQL. Now i have on source DBMS a database with a complete different schema like in target DBMS. Now i search a solution where i can connect to different DBMS Systems and can make a mapping between different source

Pip proxy no proxy

2023-10-27 Thread sebasti...@gmail.com
Hello Guys, i have no proxy in my network. Suddenly when i use pip install then i get: pip3 install django WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', OSError('Tunnel connection

Change data in DB before migrating

2023-09-03 Thread sebasti...@gmail.com
Hallo, sometimes it exists the problem that i change a field to another fieldtype then i want for example to move existing data in column to another column before migration of this field are running. Is there a possibility to execute a script before a field through migration are running?

Django Resolve Choices Class

2023-08-30 Thread sebasti...@gmail.com
I have in my model.py: class GendersChoices(models.IntegerChoices): M = 0, _('Male') F = 1, _('Female') N = 2, _('Gender Neutral') class Address(models.Model): gender = models.PositiveSmallIntegerField(choices=GendersChoices.choices, blank=True, default=GendersChoices.F,

Own documentation in django

2023-07-14 Thread sebasti...@gmail.com
Hello, i use regular markdown and asciidoc. Problem is that both have to less feature. For example i want to reuse html templates with different content. In asciidoc i can do this following: i declare variables :varibale1: Teststring :variable2: Second String include::buttontemplate.adoc[]

Django Translation won't work

2023-05-21 Thread sebasti...@gmail.com
I use django translation. Normal works perfect but now i have a problem. All verbose name are in english in django code. I setting.py i have as second language DE configure. Then i have in models.py: condition_link = models.ForeignKey(related, null=True, blank=True, default=None,

Migration don't work

2023-05-17 Thread sebasti...@gmail.com
I get on migration following error: Traceback (most recent call last): File "manage.py", line 10, in execute_from_command_line(sys.argv) File "/usr/lib/python3.8/site-packages/django/core/management/__init__.py", line 419, in execute_from_command_line utility.execute() File

Postgres Fulltext Search IContains not work

2023-05-15 Thread sebasti...@gmail.com
I have in my Postgres Database a product with following tupple: (description_de='Elegante Bluse',title_de='Elegante Bluse,slug='elegante-bluse') Not i have a field for a fulltextsearch over this table. I try to filtering by: When i now search after "Elegante" it works perfect but when i

Django Left Outer Join

2023-04-25 Thread sebasti...@gmail.com
Hello Friends, i have in models.py following: class Money(Standard_Model_Mixin): title = models.CharField(default="", max_length=120, blank=True, null=True) amount = models.DecimalField(max_digits=6, decimal_places=2, blank=False, null=False) class

Complex Query

2022-11-20 Thread sebasti...@gmail.com
Hello Guys, you find my question in attachment because tabs in tables are not shown when i send it in gmail. Please help me on my question who make i a complex query. Thanks in advance -- You received this message because you are subscribed to the Google Groups "Django users" group. To

Multitenant App

2022-11-07 Thread sebasti...@gmail.com
Hello, ich want sell my app on different companys. Now a part of apps all companys/templates use this but another apps/templates are customer specific. Now i want when i update code from apps/templates which all customer uses that i can update all customer on server as fast as possible. Here

Django Oscar mobile device QR Code scan

2022-10-27 Thread sebasti...@gmail.com
Hello, on a PC is Django Oscar in a Browser open with catalogue listview. Now i want to implement that i have on a mobile android device i have a QR Code Scanner how can send code to PC and in this QR Code is a article number and on PC this article number is automatical enter as keystrokes and

Re:

2022-02-02 Thread sebasti...@gmail.com
You insert following in your base template: {% if messages %} {% for message in messages %} {{ message|safe }} {% endfor %} {% endif %} {% if form.errors %} {% for key, value in form.errors.items %}

Multiple Choices as Label

2022-02-02 Thread sebasti...@gmail.com
Hello, I want in Listview on left side a filterform, where i can filter after sizes and/or colors. This are Multiple Choices Fields. I have attached a image where this fields are shown. For example XS has Key 1 and XL Key 2 and Color Black have Key 1 then i want when user clicks on size XS,XL

Queryset in settings.py?

2022-01-28 Thread sebasti...@gmail.com
Hello, i want to import from a app models.py like this: from app1.models import classname then i get: django.core.exceptions.AppRegistryNotReady: Apps aren't loaded yet. I want to get a queryset from app1.models.classname in settings.py. How is this possible? Regards -- You received this

Django Get model related class from many to many

2021-08-04 Thread sebasti...@gmail.com
Hello, i have in my models.py: class Estates(LoggerModelMixin,Standard_Model_Mixin): contactperson = models.ManyToManyField(Address,default=None,related_name='estates_contactperson') Now i want in my views.py i have my fieldname contactperson and now i want to get related class name from

Own Widget as Stadard

2021-08-01 Thread sebasti...@gmail.com
Hello, i have a own widget that replace TextInput widget. Now i want everytime when i have in model.py a declaration models.TextField() that these new widget is automatical used in forms.py without everytime manual declared it in forms.py. Have anyone an idea? Regards -- You received this

Email Form with attachments

2021-07-04 Thread sebasti...@gmail.com
Hello, i need a form where i have normal email fields like: to_address, from_address, subject, message and also i drag and drop zone where i can drop attachments. I have allready implement a normal drag and drop zone in another form where i can drag and drop files and it is upload und stored.

Models Mixin Inherit Many to Many

2021-06-04 Thread sebasti...@gmail.com
Hello, i need a mixin where i can inherit many to many like this: mixin.py: class RightsModelRelation(models.Model): user_link = models.ForeignKey(User, on_delete=models.CASCADE, blank=False, null=False, default=None,

Base Template per User

2021-05-24 Thread sebasti...@gmail.com
Hello, i want that every user from website can upload a base html file that are then used on every views as base template. Every User have then his own layout... Have anyone experience with such a thing? Regards -- You received this message because you are subscribed to the Google Groups

Re: Help me

2021-05-21 Thread sebasti...@gmail.com
Here are a tutorial for django with explanations how you can use forms in django https://tutorial.djangogirls.org/en/django_forms/ gabriels...@gmail.com schrieb am Freitag, 21. Mai 2021 um 12:32:51 UTC+2: > From django import forms > Class Feedback(forms.form): > name =

Django Select Filter Widget

2021-05-18 Thread sebasti...@gmail.com
Hi, i need i new widget for Select fields. I have in my models 2 classes: class address(models.Model): lastname = models.CharField(max_length=255, default="", ) firstname = models.CharField(max_length=255, default="", blank=True, null=True) and a second class: class

Re: module not found

2021-04-28 Thread sebasti...@gmail.com
Install pip3: sudo apt install python3-pip then install django: pip3 install django rabi...@gmail.com schrieb am Mittwoch, 28. April 2021 um 09:12:41 UTC+2: > Go to settings from your pc and add python to your variable path. > > On Tue, 27 Apr 2021, 23:10 Sebastian Jung, wrote: > >> Hello,

Re: Mixin add field to fields in forms

2021-04-18 Thread sebasti...@gmail.com
Hello, Thanks for your fast response. But i don't know how i can use self.declared_fields and why this would help me... Regards shahee...@gmail.com schrieb am Sonntag, 18. April 2021 um 15:14:03 UTC+2: > Try updating self.declared_fields instead. > > On Sun, 18 Apr 2021, 13:4

Mixin add field to fields in forms

2021-04-18 Thread sebasti...@gmail.com
Hello, *forms.py:* class Newsletterform(StandardMixin): class Meta: model = Newsletter fields = ['newslettername', 'from_link', 'to_list', 'email_subject', 'text_message', 'html_message' ] *Mixins.py:* class StandardMixin(forms.ModelForm): class Meta: abstract

getattr on related not possible?

2021-04-15 Thread sebasti...@gmail.com
Hello, i have following: models.py: from django.db import models class Tabs(models.Model): id = models.AutoField(primary_key=True) def __str__(self): return self.name class Box(models.Model): id = models.AutoField(primary_key=True) tabslink = models.ForeignKey(Tabs,

Dashboard Drag and Drop with individual filtering

2021-04-10 Thread sebasti...@gmail.com
Hello, i want a dashboard view. At beginning there are view standard widget but user can self insert new widgets for example a listwidget. Then user can change position per drag and drop. When user change position then position are stored in database per ajax. And next get request on dashboard

Listview Iterate over List

2021-04-07 Thread sebasti...@gmail.com
Hello, i want to create a Listview like this: class HistorieListView(ListView): model = Address template_name = 'marketing/liststandardtemplate.html' fieldlist = ('id', 'lastname', 'firstname') now i want in liststandardtemplate.html that i iterate in tablebody over fieldlist:

Re: AttributeError: 'customer' object has no attribute 'is_authenticated'

2021-04-01 Thread sebasti...@gmail.com
I think this must be wrong. Only User instance have a method is_authenticated. Here a example for views: if request.user.is_authenticated: pass sali...@rohteksolutions.com schrieb am Donnerstag, 1. April 2021 um 19:03:36 UTC+2: > Hi all, > > How to solve this errors > ``` > AttributeError:

Re: 'WSGIRequest' object has no attribute

2021-04-01 Thread sebasti...@gmail.com
I have found my failure. Thanks sebasti...@gmail.com schrieb am Donnerstag, 1. April 2021 um 18:00:57 UTC+2: > Hello, > > model.py: > > class UserSettings(models.Model): > user_link = models.OneToOneField( > User, > on_delete=models.CASCADE

'WSGIRequest' object has no attribute

2021-04-01 Thread sebasti...@gmail.com
Hello, model.py: class UserSettings(models.Model): user_link = models.OneToOneField( User, on_delete=models.CASCADE, related_name="usersettings_address",primary_key=True,) and i have a mixin: class ListviewMixin(): def get_queryset(self): print("Order

load standard user settings per view

2021-03-19 Thread sebasti...@gmail.com
Hello, i have a addresslistview that also take parameter like pagingsize and ordering over url. For example https://localhost:8000/addresslist?pagingsize=25=Id Now when a user get a request like https://localhost:8000/addresslist?pagingsize=25=Id then parameter ?pagingsize=25=Id is stored in

Smaller project that would be payed

2021-03-05 Thread sebasti...@gmail.com
Hello, i need a freelancer that implement me a new widget bzw. modelclass that can represent a select with hierarichal structure like this: http://embed.plnkr.co/BRQtUKbxZdZItLslHflM/ i know that a implementation like django-mptt can store this in database. I am beginner so i want in my

Re: Class Base View Foreign key

2021-02-27 Thread sebasti...@gmail.com
hoices_to >> >> On February 27, 2021 8:06:26 AM CST, "sebasti...@gmail.com" < >> sebasti...@gmail.com> wrote: >>> >>> Hello, >>> >>> I have a CBV with Createview. Now i have a Foreign Key from Box to Tabs >>>

Class Base View Foreign key

2021-02-27 Thread sebasti...@gmail.com
Hello, I have a CBV with Createview. Now i have a Foreign Key from Box to Tabs model. When i submit request then i get error:* Cannot assign "1": "Box.tabs_link" must be a "Tabs" instance*. This happens on form.is_valid I understand this error but i don't know how can i fix this.

Multiselect List with Collapse Widget

2021-02-19 Thread sebasti...@gmail.com
Hello, i need a new model with parent child nested relations. The final aim was this: https://www.freakyjolly.com/wp-content/uploads/2020/10/Pasted-into-Angular-109-Tree-View-List-with-Expand-Collapse-and-Checkboxes-using-ngx-treeview.png i want a mulltiselect field with subcategories. Also in

django-filters many to many

2021-02-14 Thread sebasti...@gmail.com
Hello, i have installed per pip django-filters. Models.py: class Productinterests(models.Model): id = models.AutoField(primary_key=True) name = models.CharField(max_length=255, default="", blank=False, null= False) class Address(models.Model): productinterests =