- how to implement these files into my project ?
- have i to startapp “register” into my project ?
- i believe models.py , urls.py , forms.py and Admin.py should be put into the
register folder
- login.html in the folder templates/
Thanks
Franz
Verstuurd vanaf mijn iPhone
> Op 8 nov. 2019 o
Hi there. I've been doing Django for awhile but I am stumped on this
one.. I have a many to many relationship with a 'through' definition
main.models:
class Client(models.Model):
uid = models.CharField(max_length=128, unique=True)
key = models.CharField(max_length=128)
img = model
Hi Issuer,
Check your tracker_passenger.
https://docs.djangoproject.com/en/2.2/ref/models/fields/#django.db.models.ManyToManyField
On Sun, Nov 10, 2019, 21:40 Malibu wrote:
> Hi there. I've been doing Django for awhile but I am stumped on this
> one.. I have a many to many relationship with
I am trying to create registration forms using Django's built in auth
forms. However, when using the Django admin, the Django admin templates
are always being used.
My application structure is as follows:
├── bug
│ ├── __init__.py
│ ├── __pycache__
│ ├── settings.py
│ ├── urls.py
│ └
On 11/11/2019 7:02 am, Alexander Beach wrote:
I am trying to create registration forms using Django's built in auth
forms. However, when using the Django admin, the Django admin
templates are always being used.
My application structure is as follows:
|
├──bug
│├──__init__.py
│├──__pycache__
This behavior seems counter intuitive, and contrary to what the
documentation says
For example: my settings.py file is as follows:
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [],
'APP_DIRS': True,
'OPTIONS': {
I am missing here the file = views.py
Also the " from apps.validators import validaRut " gives problems
because i am missing also the validators.py file
Op 10/11/2019 om 12:54 schreef Franz Ulenaers:
- how to implement these files into my project ?
- have i to startapp “register” into my proj
You need to reorder the app list in INSTALLED_APP setting, so
`django.contrib.admin` is located lower than your app`.
On Mon, Nov 11, 2019 at 3:49 AM Alexander Beach wrote:
> I am trying to create registration forms using Django's built in auth
> forms. However, when using the Django admin, the
Hi, thanks for the answer. Of course, the moment I posted the question I
figured out what it was.
I ended up checking my primary keys, and found that they didn't have unique
constraints. I added them and all was fine.
Must have fallen off during an import.
On Sunday, 10 November 2019 13:55:0
Thanks Motaz,
That gives me a little bit of direction.
I'm thinking now of controlling access to each app's URL's via a single
piece of middleware (instead of at each View - just have to figure out how
to do that.
Regards,
Wim
On Saturday, 9 November 2019 10:44:58 UTC+2, Motaz Hejaze wrote:
>
I dont know what is your authentication based on , but i faced such a
scenario ..
One of the solutions is to make a middleware that checks the user type with
the url prefix
So usertype1 all related routes will be under /usertype1/
usertype2 all related routes will be under /usertype2/
Middlewar
Great, thanks man!
I will try that.
Using local auth and PostgreSQL - no cloud services.
Regards!
Wim
On Mon, 11 Nov 2019 at 08:39, Motaz Hejaze wrote:
> I dont know what is your authentication based on , but i faced such a
> scenario ..
>
> One of the solutions is to make a middleware that che
12 matches
Mail list logo