Thank you
I finally made it. I was afraid about circular references and DB possible
corruptions, but Django seems to be resilient and surprises me all the time.
What I did was
1. Declared three different ForeignKeys from class A to B
2. Chose PROTECT instead of CASCADE for on_delete
3. Let blan
Hi Folks,
I'm storing users images and documents inside media folder during
development. but I don't how to serve this files for production level.Any
one have any idea, actually I read the documentation but I'm still confuse.
Thank You in advance
regards,
soumen
--
You received this message b
I am updating a settings in my test which should raise exception on illegal
entries, but merely updating settings does not make django perform system
checks. Is there any method which I can call to trigger those checks?
--
You received this message because you are subscribed to the Google Grou
Store only the path in DB and image file in server folder this is the best
practice, save the file in some folder and forward the path to DB Object
so that your DB can remember the path of the file and you can load it in
the frontend,
here is a snippet that you can use
import FileSystemStorage
Imagen we have *app-A* and *app-B* with *model-A* and *model-B* accordingly.
And we want to extend *model-A* in *app-B*.
What should be written in *model-B* to implement it?
In other words, is it possible to implement the same-table extension?
--
You received this message because you are subscri
Not sure if I understand the question correctly, but are you trying to use
model-A in app-B?
On Fri, Feb 28, 2020 at 12:33 AM Ol P wrote:
> Imagen we have *app-A* and *app-B* with *model-A* and *model-B*
> accordingly.
> And we want to extend *model-A* in *app-B*.
> What should be written in *mo
I want to extend model-A from app-B without modification of app-A
For example, add a field or new methods or override existing.
On Thursday, February 27, 2020 at 6:54:37 PM UTC+2, Jin wrote:
>
> Not sure if I understand the question correctly, but are you trying to use
> model-A in app-B?
>
> On
One-time class definition is always good choice, I won't do it like that.
But can you share the detailed scenario you are gonna implement?
On Fri, Feb 28, 2020 at 1:03 AM Ol P wrote:
> I want to extend model-A from app-B without modification of app-A
> For example, add a field or new methods or
I try to figure out if it possible to implement the next scenario:
garage (app-A)
models
class Vehicle(models.Model)
vin=models.CharField(max_length=50)
...
def import_data(self):
...
# import vehicals
external integration (app-B)
models
class ExtendedVehi
I am not sure if this is the right way.
On Thu, Feb 27, 2020 at 11:24 PM One Above All <
the.one.above.all.ti...@gmail.com> wrote:
> It is indeed possible, but I am not sure whether it should be done this
> way.
>
> On Thu, Feb 27, 2020 at 11:04 PM Ol P wrote:
>
>> I try to figure out if it poss
It is indeed possible, but I am not sure whether it should be done this
way.
On Thu, Feb 27, 2020 at 11:04 PM Ol P wrote:
> I try to figure out if it possible to implement the next scenario:
>
> garage (app-A)
> models
>class Vehicle(models.Model)
> vin=models.CharField(max_length=50)
This is definitely not correct implementation. Only for illustration
purposes.
On Thursday, February 27, 2020 at 7:55:51 PM UTC+2, One Above All wrote:
>
> It is indeed possible, but I am not sure whether it should be done this
> way.
>
> On Thu, Feb 27, 2020 at 11:04 PM Ol P > wrote:
>
>> I t
Hi Fr,
If you have not yet found out module/method for you, so let try git action
as on your dev phase with git repo.
On Thu, Feb 27, 2020, 21:32 One Above All
wrote:
> I am updating a settings in my test which should raise exception on
> illegal entries, but merely updating settings does not m
Thanks for your response.
On Thu 27 Feb, 2020, 10:03 PM Robert Rajendra,
wrote:
> Store only the path in DB and image file in server folder this is the best
> practice, save the file in some folder and forward the path to DB Object
> so that your DB can remember the path of the file and you can
Hello community
I am trying to build a simple form which can be opened using a button. It
should offer some fields which should be further process after validation.
And there is exactly my issue. When I write some data into the fields and
click the submit button. the validation error is NOT dis
If the form is not valid you are creating a new form and returning this to
the user. So you need to remove the line where you create this second form
object within the else clause of the view and it will work.
On Thu, Feb 27, 2020 at 9:10 PM Sunil BK wrote:
> Hello community
>
> I am trying to
On 28/02/2020 1:31 am, One Above All wrote:
I am updating a settings in my test which should raise exception on
illegal entries, but merely updating settings does not make django
perform system checks. Is there any method which I can call to trigger
those checks?
https://docs.djangoproject.co
Good day guys, im new to django im having in many to many relationship
display in template
How can display this into a normal list..
from .
, , , ,
]>
to.
webadmin
kim
sem
quinito
user1
Here's my code
model.py
class ListOfUser(models.Model):
users = models.ManyToManyField(User, verbos
Hi!
https://docs.djangoproject.com/en/3.0/ref/contrib/admin/#modeladmin-objects
or
https://docs.djangoproject.com/en/3.0/intro/tutorial07/#writing-your-first-django-app-part-7
Missatge de Robb Rodirguez Jr. del dia dv.,
28 de febr. 2020 a les 1:14:
> Good day guys, im new to django im having in
login page based on roles (user, admin). insert data, update data, delete
data in (entire rows). only particular update data in table
display forms in css class. the entire page without using django
admin. only access front-end.
any reference complete project for learning. please help
On Friday, February 28, 2020 at 12:19:55 PM UTC+5:30, nrupesh08 wrote:
>
>
>
> login page based on roles (user, admin). insert data, update data, delete
> data in (entire rows). only particular update data in table
> display forms in css class. the entire page without using django
> admin.
Good morning guyz,
I need help on this one, it on writing api that will Shows the product
count for each manufacturer as users add products real time.
I have no idea how to solve this problem, i will any suggestion
Thanks
--
You received this message because you are subscribed to the Google Gro
22 matches
Mail list logo