Commit 4eb02dd0 authored by Meet Narendra's avatar Meet Narendra 💬

Added base urls for apps

parent dd155b64
# CS699-Project
Superuser: meet
password: 000786
python manage.py runserver
from django.urls import path
from . import views
urlpatterns = [
path('',views.confluence, name='confluence'),
]
from django.shortcuts import render
from django.http import HttpResponse
# Create your views here.
def confluence(request):
return HttpResponse("Welcome to the confluence page")
# Create your views here.
from django.urls import path
from . import views
urlpatterns = [
path('',views.github, name='github'),
]
from django.shortcuts import render
from django.http import HttpResponse
# Create your views here.
def github(request):
return HttpResponse("Welcome to the github page")
# Create your views here.
from django.urls import path
from . import views
urlpatterns = [
path('',views.login, name='login'),
]
from django.shortcuts import render
from django.http import HttpResponse
# Create your views here.
def login(request):
return HttpResponse("Welcome to the login page")
from django.urls import path
from . import views
urlpatterns = [
path('',views.jira, name='jira'),
]
\ No newline at end of file
from django.shortcuts import render
from django.http import HttpResponse
# Create your views here.
def jira(request):
return HttpResponse("Welcome to the jira page")
# Create your views here.
......@@ -37,9 +37,19 @@ INSTALLED_APPS = [
"django.contrib.sessions",
"django.contrib.messages",
"django.contrib.staticfiles",
'jira.apps.JiraConfig',
'confluence.apps.ConfluenceConfig',
'github.apps.GithubConfig',
'home.apps.HomeConfig',
'slack.apps.SlackConfig',
'corsheaders',
'rest_framework'
]
CORS_ORIGIN_ALLOW_ALL = True
MIDDLEWARE = [
'corsheaders.middleware.CorsMiddleware',
"django.middleware.security.SecurityMiddleware",
"django.contrib.sessions.middleware.SessionMiddleware",
"django.middleware.common.CommonMiddleware",
......@@ -83,11 +93,11 @@ DATABASES = {
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql',
'NAME': ,
'USER': '<database_username>',
'PASSWORD': '<password>',
'HOST': '<database_hostname_or_ip>',
'PORT': '<database_port>',
'NAME': 'cs699',
'USER': 'meet',
'PASSWORD': '000786',
'HOST': 'localhost',
'PORT': '5432',
}
}
......
......@@ -14,8 +14,13 @@ Including another URLconf
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path
from django.urls import path,include
urlpatterns = [
path("admin/", admin.site.urls),
path("home/",include('home.urls')),
path("github/",include('github.urls')),
path("confluence/",include('confluence.urls')),
path("slack/",include('slack.urls')),
path("jira/",include('jira.urls')),
]
from django.urls import path
from . import views
urlpatterns = [
path('',views.slack, name='slack'),
]
\ No newline at end of file
from django.shortcuts import render
from django.http import HttpResponse
# Create your views here.
def slack(request):
return HttpResponse("Welcome to the slack page")
# Create your views here.
#!/bin/bash
export POSTGRES_INSTALLDIR=/home/meet/git/postgresql/install
export PATH=${POSTGRES_INSTALLDIR}/bin:{PATH}
export PGDATA=${POSTGRES_INSTALLDIR}/data
pg_ctl -D $PGDATA -l logfile start
psql -h localhost -p 5432 -d postgres
\ No newline at end of file
github: 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
GET List of Repos:
curl \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer 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" \
https://api.github.com/users/meetdoshi90/repos
GET A Repo:
curl \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer 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" \
https://api.github.com/repos/meetdoshi90/Zap-iOS-Game
GET Repo Contents:
curl \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer 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" \
https://api.github.com/repos/meetdoshi90/Zap-iOS-Game/contents/
GET A File from a repository
curl \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer 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" \
https://api.github.com/repos/meetdoshi90/Zap-iOS-Game/contents/Podfile
github: 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
GET List of Repos:
curl \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer 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" \
https://api.github.com/users/meetdoshi90/repos
GET A Repo:
curl \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer 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" \
https://api.github.com/repos/meetdoshi90/Zap-iOS-Game
GET Repo Contents:
curl \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer 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" \
https://api.github.com/repos/meetdoshi90/Zap-iOS-Game/contents/PATH
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