Actually I'm asking to store multiple files in a single model field and
handling each of them
On Mon, 29 Jul, 2019, 9:05 PM Jani Tiainen, wrote:
> My mistake.
>
> I thuought that OP was asking about uploading and storing multiple files
> to model.
>
> First part (uploading) is easy since docs
You probably can extend the form class and override the is_valid method.
Make the new is_valid to always return True.
On Tue, Jul 30, 2019 at 11:42 AM Kai Kobschätzki
wrote:
> Heiho,
>
> I wrote a form in forms.py with some validation stuff, especially with
> def clean_field(). All fine. But in
Heiho,
I wrote a form in forms.py with some validation stuff, especially with
def clean_field(). All fine. But in some usecases I would prefare to
switch off at least some of the validation. For example it make no sense
to check for a double id when I want to delete a reccord. Is it possible
to
https://pypi.org/project/django-ip-restriction/
Try just searching up “Django ip restrict” or “django ip restriction” or
“django ip block”
There are plenty of options out there. As for why this might be needed, you
can blame China with all these bot attacks on websites :P It can also be
for other
Huge app such as Netflix tries to do that, and people always can find
workaround. Why do you also want such feature? Licensing limitation such
as Netflix?
On Tue, Jul 30, 2019 at 8:08 AM Sebastian Jung
wrote:
> Hello,
>
> I want that my Website only German user can Open it and another User
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
Hi,
I definitely wouldn't recommend doing what you want to do, for several
reasons:
1. It will be hard to find the model when you need to update it.
2. Django is built with defaults in mind - and when you go outside the
defaults you are working against the framework and not with it.
But that
Hi,
The reason you are having problems is that the last item in your URLs is a
catch all - it will get all items that aren't found previously. So if you
want to go to admin, you need to add the admin urls BEFORE your catchall.
Also - the way that you are handling getting the categories or
I'm trying to create a detail view for the model PROJECT. In the detail
view, I want to also include a model TASK and all the related objects in
ATTACHMENTS to each task.
I'd like to do something like this -
{for task in task list}
{task}
{for attachments in task}
{attachment}
{end for}
{end
If you cant see it in your table in dbms, you probably have not run
makemigrations and migrate commands.
If you have done that, you should grab the migration file when that field
was first created and paste that code here. Also paste your old n new code
from the models.py file. So that someone
Hi all,
I am trying to create a field in Django 2.2 with BigAutoField as the
datatype. The backend is MySql. And I am using the mysql.connector.
When I try to add datatype as BigAutoField for the column, I cannot see
that column in my table.
If I alter it from 'AutoField' to 'BigAutoField',
My mistake.
I thuought that OP was asking about uploading and storing multiple files to
model.
First part (uploading) is easy since docs do cover that.
Second part is tricky since it requires data structure capable of storing
multiple files and there are so many ways to do that.
ma 29.
Multiple file uploads already there for many years. The link I shared above
show you how to do that the Django way.
Regards,
Aldian Fazrihady
http://aldianfazrihady.com
On Mon, 29 Jul 2019, 21:52 Jani Tiainen, wrote:
> Hi.
>
> TL; DR; you can't.
>
> You though can upload multiple files just
Hi,
updated the 'allauth' app to installed apps in settings.py
getting the error 'No module named 'allauth'
Tried pip installing, but no matches returned.
keans-air:bnt ProductionEnv$ pip3 install django allauth
Requirement already satisfied: django in
/usr/local/lib/python3.7/site-packages
Hi.
TL; DR; you can't.
You though can upload multiple files just fine you just need to handle them
manually.
Also if you plan to keep files around your models must enable that.
ma 29. heinäk. 2019 klo 15.48 Suraj Thapa FC
kirjoitti:
> How can I create a file field which one can upload
Thank You! The issue is solved now.
I removed the Anaconda installation and installed Python 3.6.3.
Also I downgraded to Django 2.1.10.
On Saturday, July 27, 2019 at 12:21:49 PM UTC+5:30, jlgimeno71 wrote:
>
>
>
> On Fri, Jul 26, 2019, 8:22 PM Abhijith E >
> wrote:
>
>> It's the latest version.
https://docs.djangoproject.com/en/2.2/topics/http/file-uploads/
On Mon, Jul 29, 2019 at 7:48 PM Suraj Thapa FC
wrote:
> How can I create a file field which one can upload Multiple files in it...
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users"
How can I create a file field which one can upload Multiple files in it...
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to
Hi, i;m new here, also in django developing,
Lastly i tried to create an app, something like a blog. And I have created
a Model with FK relations like this: *Category=>Subcategory=>Post.*
Till here everything is fine, also when I create a Post in Admin Panel
there is a char field to put the
Hi
Thanks a lot !
yves
> Le 28 juill. 2019 à 22:56, Aldian Fazrihady a écrit :
>
> Hi Yves, please clear cookies and refresh your django app page afterwards.
>
> It is possible to not use cookies at all regarding i18n if you use language
> code as part of URL. I always prefer using URL for
Hi Folks,
I extended User model by Profile Model but mu requirement is like If I'm
creating any resource it should is_your_friend equals True or yes but for
others it should show is_your_friend equals to False or No. Also one
column is there called mutual friend if this friend common for me and
Thank you for your response.
Regards,
Soumen
On Sun, 28 Jul 2019, 23:27 Juhana Jauhiainen,
wrote:
> Hi Soumen,
>
> You could try with
>
> profiles = Profile.objects.filter(user__username=username)
>
>
> I would also suggest changing your model definition to something like
>
> class
22 matches
Mail list logo