Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
PizzaWeb
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sofiane Lasri
PizzaWeb
Commits
3365b168
Commit
3365b168
authored
2 years ago
by
Sofiane Lasri
Browse files
Options
Downloads
Patches
Plain Diff
Référencement de applipizza dans les apps.
parent
09436ff4
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
webpizza/applipizza/migrations/0001_initial.py
+39
-0
39 additions, 0 deletions
webpizza/applipizza/migrations/0001_initial.py
webpizza/webpizza/settings.py
+1
-0
1 addition, 0 deletions
webpizza/webpizza/settings.py
with
40 additions
and
0 deletions
webpizza/applipizza/migrations/0001_initial.py
0 → 100644
+
39
−
0
View file @
3365b168
# Generated by Django 4.2 on 2023-04-12 08:17
from
django.db
import
migrations
,
models
import
django.db.models.deletion
class
Migration
(
migrations
.
Migration
):
initial
=
True
dependencies
=
[
]
operations
=
[
migrations
.
CreateModel
(
name
=
'
Ingredient
'
,
fields
=
[
(
'
id
'
,
models
.
AutoField
(
primary_key
=
True
,
serialize
=
False
)),
(
'
nom
'
,
models
.
CharField
(
max_length
=
50
,
verbose_name
=
"
Nom de l
'
ingrédient
"
)),
],
),
migrations
.
CreateModel
(
name
=
'
Pizza
'
,
fields
=
[
(
'
id
'
,
models
.
AutoField
(
primary_key
=
True
,
serialize
=
False
)),
(
'
nom
'
,
models
.
CharField
(
max_length
=
50
,
verbose_name
=
'
Nom de la pizza
'
)),
(
'
prix
'
,
models
.
FloatField
(
verbose_name
=
'
Prix de la pizza
'
)),
],
),
migrations
.
CreateModel
(
name
=
'
Composition
'
,
fields
=
[
(
'
id
'
,
models
.
AutoField
(
primary_key
=
True
,
serialize
=
False
)),
(
'
quantite
'
,
models
.
FloatField
(
verbose_name
=
"
Quantité de l
'
ingrédient
"
)),
(
'
ingredient
'
,
models
.
ForeignKey
(
on_delete
=
django
.
db
.
models
.
deletion
.
CASCADE
,
to
=
'
applipizza.ingredient
'
)),
(
'
pizza
'
,
models
.
ForeignKey
(
on_delete
=
django
.
db
.
models
.
deletion
.
CASCADE
,
to
=
'
applipizza.pizza
'
)),
],
),
]
This diff is collapsed.
Click to expand it.
webpizza/webpizza/settings.py
+
1
−
0
View file @
3365b168
...
...
@@ -37,6 +37,7 @@ INSTALLED_APPS = [
'
django.contrib.sessions
'
,
'
django.contrib.messages
'
,
'
django.contrib.staticfiles
'
,
'
applipizza
'
,
]
MIDDLEWARE
=
[
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment