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
tab
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 failed
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?
Regar
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, null=True,
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[]
T
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, on_delete=mode
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
"/usr/
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 searc
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 Moneyreport(Standard_Model_Mixin,May
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 unsub
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 a
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
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 %}
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 a
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 m
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 this
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 m
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.
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,
related_name="%(class)s_rights_user"
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
"
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 = forms.CharField(wi
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 emailaddress
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,
>>
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,
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 =
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, on_
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
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:
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:
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
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 "+
Hello,
i have a addresslistview that also take parameter like pagingsize and
ordering over url. For example
https://localhost:8000/addresslist?pagingsize=25&ordering=Id
Now when a user get a request like
https://localhost:8000/addresslist?pagingsize=25&ordering=Id then parameter
?pagingsize=2
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 exist
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
>>> m
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.
*Models.py*:
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
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 = models.ManyToManyFie
37 matches
Mail list logo