Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Jelle van der Waa
Archweb
Commits
706152de
Commit
706152de
authored
Dec 29, 2007
by
eliott
Browse files
Moved some things around.
parent
89659cef
Changes
6
Hide whitespace changes
Inline
Side-by-side
public
/models.py
→
devel
/models.py
View file @
706152de
...
...
@@ -10,6 +10,8 @@ class Mirror(models.Model):
admin_email
=
models
.
CharField
(
maxlength
=
255
,
null
=
True
,
blank
=
True
)
def
__str__
(
self
):
return
self
.
domain
class
Meta
:
db_table
=
'common_mirror'
class
Admin
:
list_display
=
(
'domain'
,
'country'
)
list_filter
=
(
'country'
,)
...
...
@@ -22,6 +24,8 @@ class Donator(models.Model):
name
=
models
.
CharField
(
maxlength
=
255
)
def
__str__
(
self
):
return
self
.
name
class
Meta
:
db_table
=
'common_donator'
class
Admin
:
ordering
=
[
'name'
]
search_fields
=
(
'name'
)
...
...
public
/templatetags/__init__.py
→
devel
/templatetags/__init__.py
View file @
706152de
File moved
public
/templatetags/validation.py
→
devel
/templatetags/validation.py
View file @
706152de
File moved
devel/views.py
View file @
706152de
...
...
@@ -6,8 +6,8 @@
from
archweb_dev.packages.models
import
Package
from
archweb_dev.todolists.models
import
Todolist
,
TodolistPkg
from
archweb_dev.settings
import
DATA_DIR
from
archweb_dev.utils
import
validate
from
archweb_dev.
public
.models
import
UserProfile
from
archweb_dev.
lib.
utils
import
validate
from
archweb_dev.
devel
.models
import
UserProfile
@
login_required
def
index
(
request
):
...
...
public/views.py
View file @
706152de
...
...
@@ -4,7 +4,7 @@
from
archweb_dev.packages.models
import
Package
,
Repo
from
archweb_dev.news.models
import
News
from
archweb_dev.settings
import
DATA_DIR
from
archweb_dev.
public
.models
import
Donator
,
Mirror
from
archweb_dev.
devel
.models
import
Donator
,
Mirror
def
index
(
request
):
# get the most recent 10 news items
...
...
settings.py
View file @
706152de
...
...
@@ -75,7 +75,7 @@
# Set django's User stuff to use our profile model
# format is app.model
AUTH_PROFILE_MODULE
=
'
public
.UserProfile'
AUTH_PROFILE_MODULE
=
'
devel
.UserProfile'
INSTALLED_APPS
=
(
'django.contrib.auth'
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment