Commit 816bffa1 authored by SANCHIT JAIN's avatar SANCHIT JAIN

incomplete frnt-end

parent 4c6ba077
......@@ -25,12 +25,15 @@ SECRET_KEY = '#0%ypl8x!rnrjer#4d*j$l$gczqg*=tx1(2j^05m+@wx@-406-'
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
ALLOWED_HOSTS = []
ALLOWED_HOSTS = [
u'*'
]
# Application definition
INSTALLED_APPS = [
'ARFA_app',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
......@@ -80,7 +83,7 @@ DATABASES = {
'USERNAME':'sanchit',
'USER':'sanchit',
'PASSWORD':'q1w2e3r4',
'HOST': '10.2.224.104',
'HOST': '127.0.0.1',
'PORT': '5430'
}
}
......
No preview for this file type
......@@ -13,9 +13,10 @@ Including another URLconf
1. Import the include() function: from django.conf.urls import url, include
2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls'))
"""
from django.conf.urls import url
from django.conf.urls import url,include
from django.contrib import admin
urlpatterns = [
url(r'^admin/', admin.site.urls),
url(r'^login/',include('ARFA_app.urls')),
]
No preview for this file type
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.contrib import admin
# Register your models here.
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.apps import AppConfig
class ArfaAppConfig(AppConfig):
name = 'ARFA_app'
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models
# Create your models here.
body {
background-color:yellow;
}
\ No newline at end of file
{%extends 'base.html'%}
<!-- <html>
<head>
<title>
Login page
</title>
<!-- Latest compiled and minified CSS -->
<!-- <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
{% load static %}
<link rel="stylesheet" href="{% static 'ARFA_app/style.css' %}" type="text/css">
</head>
<body>
Welcome! You can login here get out
<br>
<button type="button" name="button" class="btn btn-danger outline btn-lg">
Submit me
</button>
</body>
</html>
-->
<html>
<head>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<title>
{% block title %}
Base page
{% endblock %}
</title>
{%block head%}
{% load static %}
<link rel="stylesheet" href="{% static 'ARFA_app/style.css' %}" type="text/css">
{%endblock%}
</head>
<body>
<div class="container">
<div class="jumbotron">
<h1>ARFA</h1>
<p>Learn Innovate Teach</p>
</div>
<p>This is some text.</p>
<p>This is another text.</p>
</div>
<br>
<button type="button" name="button" class="btn btn-danger outline btn-lg">
Submit me
</button>
</body>
</html>
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.test import TestCase
# Create your tests here.
from django.conf.urls import url
from . import views
urlpatterns=[
url(r'^$',views.home),
]
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.shortcuts import render
# Create your views here.
def home(request):
return render(request,'ARFA_app/login.html')
\ No newline at end of file
Installing Dependencies:-
sudo pip install django
sudo pip install psycopg2-binary
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment