@@ -33,12 +33,13 @@ ALLOWED_HOSTS = []
33 33
 # Application definition
34 34
 
35 35
 INSTALLED_APPS = [
36
+    'django.contrib.staticfiles',
36 37
     'django.contrib.admin',
37 38
     'django.contrib.auth',
38 39
     'django.contrib.contenttypes',
39 40
     'django.contrib.sessions',
40 41
     'django.contrib.messages',
41
-    'django.contrib.staticfiles',
42
+    'import_export',
42 43
     'django_google_maps',
43 44
     'django.contrib.gis',
44 45
     'smart_selects',
@@ -62,7 +63,7 @@ ROOT_URLCONF = 'shaqfindbed.urls'
62 63
 TEMPLATES = [
63 64
     {
64 65
         'BACKEND': 'django.template.backends.django.DjangoTemplates',
65
-        'DIRS': [],
66
+        'DIRS': [os.path.join(BASE_DIR, 'templates')],
66 67
         'APP_DIRS': True,
67 68
         'OPTIONS': {
68 69
             'context_processors': [

+ 1 - 1
shaqfindbed/urls.py

@@ -23,7 +23,7 @@ urlpatterns = [
23 23
     path('backend/', include('backend.urls')),
24 24
     path('admin/', admin.site.urls),
25 25
     url(r'^chaining/', include('smart_selects.urls')),
26
-]
26
+] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
27 27
 
28 28
 if settings.DEBUG:
29 29
     urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)

shaqfindbed/wsgi.py → app/shaqfindbed/wsgi.py


BIN
app/static/.DS_Store


BIN
app/static/admin/.DS_Store


staticfile/admin/css/autocomplete.css → app/static/admin/css/autocomplete.css


+ 0 - 0
staticfile/admin/css/base.css


Bu fark içinde çok fazla dosya değişikliği olduğu için bazı dosyalar gösterilmiyor

tum/whitesports - Gogs: Simplico Git Service

Sin descripción

Exception.php 1.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <?php
  2. /**
  3. * Exception for HTTP requests
  4. *
  5. * @package Requests
  6. */
  7. /**
  8. * Exception for HTTP requests
  9. *
  10. * @package Requests
  11. */
  12. class Requests_Exception extends Exception {
  13. /**
  14. * Type of exception
  15. *
  16. * @var string
  17. */
  18. protected $type;
  19. /**
  20. * Data associated with the exception
  21. *
  22. * @var mixed
  23. */
  24. protected $data;
  25. /**
  26. * Create a new exception
  27. *
  28. * @param string $message Exception message
  29. * @param string $type Exception type
  30. * @param mixed $data Associated data
  31. * @param integer $code Exception numerical code, if applicable
  32. */
  33. public function __construct($message, $type, $data = null, $code = 0) {
  34. parent::__construct($message, $code);
  35. $this->type = $type;
  36. $this->data = $data;
  37. }
  38. /**
  39. * Like {@see getCode()}, but a string code.
  40. *
  41. * @codeCoverageIgnore
  42. * @return string
  43. */
  44. public function getType() {
  45. return $this->type;
  46. }
  47. /**
  48. * Gives any relevant data
  49. *
  50. * @codeCoverageIgnore
  51. * @return mixed
  52. */
  53. public function getData() {
  54. return $this->data;
  55. }
  56. }