mirror of
https://github.com/joshuadavidthomas/django-language-server.git
synced 2025-08-04 18:18:14 +00:00
add simple test project (#132)
This commit is contained in:
parent
f778bef5db
commit
dab4e71a51
16 changed files with 263 additions and 0 deletions
0
tests/project/djls_app/__init__.py
Normal file
0
tests/project/djls_app/__init__.py
Normal file
3
tests/project/djls_app/admin.py
Normal file
3
tests/project/djls_app/admin.py
Normal file
|
@ -0,0 +1,3 @@
|
|||
from django.contrib import admin
|
||||
|
||||
# Register your models here.
|
6
tests/project/djls_app/apps.py
Normal file
6
tests/project/djls_app/apps.py
Normal file
|
@ -0,0 +1,6 @@
|
|||
from django.apps import AppConfig
|
||||
|
||||
|
||||
class DjlsAppConfig(AppConfig):
|
||||
default_auto_field = 'django.db.models.BigAutoField'
|
||||
name = 'djls_app'
|
0
tests/project/djls_app/migrations/__init__.py
Normal file
0
tests/project/djls_app/migrations/__init__.py
Normal file
3
tests/project/djls_app/models.py
Normal file
3
tests/project/djls_app/models.py
Normal file
|
@ -0,0 +1,3 @@
|
|||
from django.db import models
|
||||
|
||||
# Create your models here.
|
25
tests/project/djls_app/templates/djls_app/base.html
Normal file
25
tests/project/djls_app/templates/djls_app/base.html
Normal file
|
@ -0,0 +1,25 @@
|
|||
{% load static %}
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Test Page</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Hello, {{ user.username }}!</h1>
|
||||
<p>This is a test template.</p>
|
||||
{% if items %}
|
||||
<ul>
|
||||
{% for item in items %}<li>{{ item.name }}</li>{% endfor %}
|
||||
</ul>
|
||||
{% else %}
|
||||
<p>No items found.</p>
|
||||
{% endif %}
|
||||
<img src="{% static 'images/logo.png' %}" alt="Logo">
|
||||
{# This is a comment #}
|
||||
|
||||
{% block content %}
|
||||
{% endblock content %}
|
||||
|
||||
</body>
|
||||
</html>
|
3
tests/project/djls_app/tests.py
Normal file
3
tests/project/djls_app/tests.py
Normal file
|
@ -0,0 +1,3 @@
|
|||
from django.test import TestCase
|
||||
|
||||
# Create your tests here.
|
3
tests/project/djls_app/views.py
Normal file
3
tests/project/djls_app/views.py
Normal file
|
@ -0,0 +1,3 @@
|
|||
from django.shortcuts import render
|
||||
|
||||
# Create your views here.
|
Loading…
Add table
Add a link
Reference in a new issue