Skip to content

Commit

Permalink
added machinery start app
Browse files Browse the repository at this point in the history
  • Loading branch information
anurag6569201 committed Jul 26, 2024
1 parent 86626f8 commit f3f4ce0
Show file tree
Hide file tree
Showing 32 changed files with 72 additions and 7 deletions.
Binary file modified blinklog/__pycache__/settings.cpython-312.pyc
Binary file not shown.
Binary file modified blinklog/__pycache__/urls.cpython-312.pyc
Binary file not shown.
3 changes: 3 additions & 0 deletions blinklog/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@
# custom apps
'userauths',
'core',

# custom apps
'machinery',
]

MIDDLEWARE = [
Expand Down
3 changes: 3 additions & 0 deletions blinklog/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@
# authentication
path('',include('core.urls')),
path('user/',include('userauths.urls')),

# custom apps
path('machinery/',include('machinery.urls')),
]

urlpatterns += static(settings.STATIC_URL,document_root=settings.STATIC_ROOT)
Expand Down
2 changes: 1 addition & 1 deletion core/templates/core/app/welcome.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ <h1 class="feature-main-text">IMC <span>Inventory</span></h1>
<div class="col-md-6 row features-section">
<div class="row col-md-5" style="flex-direction: column;">
<div class="feature col-md-12">
<a href="">
<a href="{% url 'machinery:machinery' %}">
<div class="feature-content feature-content1">
<div class="main-text-li" style="display: flex;align-items: left;justify-content: left;flex-direction: column;">
<span class="text-features">Machinery</span>
Expand Down
5 changes: 4 additions & 1 deletion core/templates/core/elements/main-script.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script>

<!-- global js -->
<script src="{% static 'core/js/background.js' %}"></script>
<script src="{% static 'core/js/background.js' %}"></script>

<!-- welcome js -->
<script src="{% static 'core/js/welcome.js' %}"></script>
3 changes: 3 additions & 0 deletions core/templates/core/elements/main-style.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,6 @@

<!-- global css -->
<link rel="stylesheet" href="{% static 'core/css/background.css' %}">

<!-- welcome css -->
<link rel="stylesheet" href="{% static 'core/css/welcome.css' %}">
2 changes: 0 additions & 2 deletions core/templates/core/elements/script.html
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
{% load static %}
<!-- welcome js -->
<script src="{% static 'core/js/welcome.js' %}"></script>
2 changes: 0 additions & 2 deletions core/templates/core/elements/style.html
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
{% load static %}
<!-- welcome css -->
<link rel="stylesheet" href="{% static 'core/css/welcome.css' %}">
1 change: 0 additions & 1 deletion core/templates/core/partial/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
{% endblock appstyling %}

{% block mainapp %}
{% include 'core/elements/navbar.html' %}
{% block index %}
{% endblock index %}
{% endblock mainapp %}
Expand Down
1 change: 1 addition & 0 deletions core/templates/core/partial/main-base.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
</head>

<body>
{% include 'core/elements/navbar.html' %}
{% block mainapp %}
{% endblock mainapp %}

Expand Down
Empty file added machinery/__init__.py
Empty file.
Binary file added machinery/__pycache__/__init__.cpython-312.pyc
Binary file not shown.
Binary file added machinery/__pycache__/admin.cpython-312.pyc
Binary file not shown.
Binary file added machinery/__pycache__/apps.cpython-312.pyc
Binary file not shown.
Binary file added machinery/__pycache__/models.cpython-312.pyc
Binary file not shown.
Binary file added machinery/__pycache__/urls.cpython-312.pyc
Binary file not shown.
Binary file added machinery/__pycache__/views.cpython-312.pyc
Binary file not shown.
3 changes: 3 additions & 0 deletions machinery/admin.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from django.contrib import admin

# Register your models here.
6 changes: 6 additions & 0 deletions machinery/apps.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
from django.apps import AppConfig


class MachineryConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'machinery'
Empty file.
Binary file not shown.
3 changes: 3 additions & 0 deletions machinery/models.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from django.db import models

# Create your models here.
Empty file.
Empty file.
6 changes: 6 additions & 0 deletions machinery/templates/machinery/app/machinery.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{% extends 'machinery/partial/base.html' %}
{% load static %}

{% block index %}
machinery
{% endblock index %}
3 changes: 3 additions & 0 deletions machinery/templates/machinery/elements/script.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{% load static %}
<!-- machinery js -->
<script src="{% static 'machinery/js/machinery.js' %}"></script>
3 changes: 3 additions & 0 deletions machinery/templates/machinery/elements/style.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{% load static %}
<!-- machinery css -->
<link rel="stylesheet" href="{% static 'machinery/css/machinery.css' %}">
15 changes: 15 additions & 0 deletions machinery/templates/machinery/partial/base.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{% extends 'core/partial/main-base.html' %}
{% load static %}

{% block appstyling %}
{% include 'machinery/elements/style.html' %}
{% endblock appstyling %}

{% block mainapp %}
{% block index %}
{% endblock index %}
{% endblock mainapp %}

{% block appscripting %}
{% include 'machinery/elements/script.html' %}
{% endblock appscripting %}
3 changes: 3 additions & 0 deletions machinery/tests.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from django.test import TestCase

# Create your tests here.
8 changes: 8 additions & 0 deletions machinery/urls.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
from django.urls import path
from machinery import views

app_name='machinery'

urlpatterns=[
path('',views.machinery,name='machinery'),
]
7 changes: 7 additions & 0 deletions machinery/views.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
from django.shortcuts import render

def machinery(request):
context={

}
return render(request,'machinery/app/machinery.html',context)

0 comments on commit f3f4ce0

Please sign in to comment.