If you dont want django admin just remove it from installed apps ,
middleware and urls..
But i dont advice you to do this , you can make you own dashboards and keep
django default admin panel ..
You need a 3 signup pages and 3 login pages , each signup page will create
a different user and each l
You can use path or re_path
path for normal urls
re_path for urls containing regular expressions
urlpatterns = [
path('index' , views.index , name='index)
re_path('index/[a-z]*w/' , views.another_index , name='anotherIndex')
On Sat, 9 Nov 2019, 12:47 am Mdlr, wrote:
> I try to compile an
At the end of the day, assuming you combine the Django "application server"
with a REST wrapper, you can build any level or type of service you could
want.
The crucial question is how you want to trade off the power of the ORM
against custom code? For example, let's say you wrapped every single ta
1. If your application going for production, then don’t start with
Microservices. Microservices used to scale up your application in
horizontally as well as there are other some benefits like each service can
build with small amount of team, therefore maintaining and testing is
pretty easy. If you
Hi Freinds,
start rightnow by use djangorestframework
On Sat, Nov 9, 2019, 17:15 Uzama Zaid Mohammed Jaward
wrote:
> 1. If your application going for production, then don’t start with
> Microservices. Microservices used to scale up your application in
> horizontally as well as there are other s
I have two models which are associated to each other through a ForeignKey
how to delete the child model object without affecting parent model object
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receivi
Hello All,
I have been working on a project for task management and email scheduling
webapp using python and django. I have little experience on Python and
django framework.
in my template file I have to attach multiple files of variety of extension
in the form field and when i create a new jo
>
> when you use foreingkey you will set these options
>
here, change like this
on_delete=models.SET_NULL
user = models.ForeignKey(User, null=True, on_delete=models.SET_NULL)
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from
Hi Issuer,
doConda clean --alland conda update anaconda
According to https://github.com/conda/conda/pull/6082
On Sat, Nov 9, 2019, 02:25 Fasetire Babatunde Gbolahan
wrote:
> conda.core.link:_execute_actions(337): An error occurred while installing
> package 'anaconda::sqlparse-0.3.0-py_0'. Cond
Since you are deleting the child model object none of these matters. But if
you are deleting the parent model object on_delete matters.
On Sat, 9 Nov 2019, 6:35 pm Jordan Micle, wrote:
> when you use foreingkey you will set these options
>>
> here, change like this
> on_delete=models.SET_NULL
>
Agree with Jordan. When you talk about CASCADE Delete to SET_NULL, those will
matter when the parent table is deleted.
For Example:
User
Field
Type
UserID
INT
Username
VARCHAR
Employee
Field
Type
Relationship
… some fields
User
INT
Foreignkey(User, Userid)
In this case:
1. If you delete
Agree with Nick.
It's an approach problem. Not a framework problem. Unless framework does not
support Service Layering. But its not likely for Django, as it can support such
architecture.
Referring DDD and Onion Architecture might help (DDD is for Statically typed
languages like Java etc, but
I have to import the data into models from excel sheet from admin site and
the code is
models.py
class Exam(models.Model): Examname = models.CharField(null=False,
blank=False, max_length=255)
class Meta: unique_together = ["Examname"]
def *str*(self): return self.Examname
admin.py
@admin.regist
13 matches
Mail list logo