first commit
This commit is contained in:
0
are_you_hiring/__init__.py
Normal file
0
are_you_hiring/__init__.py
Normal file
3
are_you_hiring/admin.py
Normal file
3
are_you_hiring/admin.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from django.contrib import admin
|
||||
|
||||
# Register your models here.
|
||||
6
are_you_hiring/apps.py
Normal file
6
are_you_hiring/apps.py
Normal file
@@ -0,0 +1,6 @@
|
||||
from django.apps import AppConfig
|
||||
|
||||
|
||||
class AreYouHiringConfig(AppConfig):
|
||||
default_auto_field = 'django.db.models.BigAutoField'
|
||||
name = 'are_you_hiring'
|
||||
0
are_you_hiring/migrations/__init__.py
Normal file
0
are_you_hiring/migrations/__init__.py
Normal file
37
are_you_hiring/models.py
Normal file
37
are_you_hiring/models.py
Normal file
@@ -0,0 +1,37 @@
|
||||
from django.db import models
|
||||
from django.core.files.storage import FileSystemStorage
|
||||
from django.contrib.auth.models import User
|
||||
|
||||
from events.models import Organization
|
||||
|
||||
class JobOpening(models.Model):
|
||||
title = models.CharField(max_length=128, blank=True, null=True)
|
||||
organization = models.ForeignKey(Organization)
|
||||
link = models.URLField(blank=True, null=True)
|
||||
show_date = models.DateTimeField()
|
||||
abstract = models.TextField()
|
||||
|
||||
class Meta:
|
||||
verbose_name_plural = "Job Openings"
|
||||
ordering = ['title']
|
||||
|
||||
def __unicode__(self):
|
||||
return "%s" % self.show_title
|
||||
|
||||
def __str__(self):
|
||||
return u'%s' % self.show_title
|
||||
|
||||
|
||||
class Tag(models.Model):
|
||||
name = models.CharField(max_length=64)
|
||||
description = models.TextField(blank=True, null=True)
|
||||
slug = models.SlugField()
|
||||
|
||||
class Meta:
|
||||
verbose_name_plural = "Tags"
|
||||
|
||||
def __unicode__(self):
|
||||
return "%s" % self.name
|
||||
|
||||
def __str__(self):
|
||||
return u'%s' % self.name
|
||||
3
are_you_hiring/tests.py
Normal file
3
are_you_hiring/tests.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from django.test import TestCase
|
||||
|
||||
# Create your tests here.
|
||||
25
are_you_hiring/urls.py
Normal file
25
are_you_hiring/urls.py
Normal file
@@ -0,0 +1,25 @@
|
||||
"""ds_events URL Configuration
|
||||
|
||||
The `urlpatterns` list routes URLs to views. For more information please see:
|
||||
https://docs.djangoproject.com/en/4.1/topics/http/urls/
|
||||
Examples:
|
||||
Function views
|
||||
1. Add an import: from my_app import views
|
||||
2. Add a URL to urlpatterns: path('', views.home, name='home')
|
||||
Class-based views
|
||||
1. Add an import: from other_app.views import Home
|
||||
2. Add a URL to urlpatterns: path('', Home.as_view(), name='home')
|
||||
Including another URLconf
|
||||
1. Import the include() function: from django.urls import include, path
|
||||
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
|
||||
"""
|
||||
from django.contrib import admin
|
||||
from django.urls import path, include, re_path
|
||||
from .views import *
|
||||
|
||||
urlpatterns = [
|
||||
re_path(r'^abstracts/', AbstractsAPIView.as_view(), name="get-events"),
|
||||
# re_path(r'^promo/', PromoAPIView.as_view(), name="get-promo"),
|
||||
# re_path(r'^events-token/', EventsTokenAPIView.as_view(), name="get-token-events"),
|
||||
|
||||
]
|
||||
3
are_you_hiring/views.py
Normal file
3
are_you_hiring/views.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from django.shortcuts import render
|
||||
|
||||
# Create your views here.
|
||||
Reference in New Issue
Block a user