existing database connectivity

75 views
Skip to first unread message

Django_user

unread,
Dec 19, 2016, 6:34:39 AM12/19/16
to Django users
Hello all,
     I am using Django framework for our website.I am stuck on the database connectivity.I want to change the default database sqlite with our for test purpose but in that also I am getting problems.
 My aim is I have to use our compnies database so that already registered users have not to create their account again
AsDjango already comes with its own builtin apps for login,logout authentication and registration .Also I am not able to find the 'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.sites',
    'django.contrib.admin',
    etc and all default apps also.
Please help me.

Thank you.

Derek

unread,
Dec 19, 2016, 9:20:19 AM12/19/16
to Django users
Suggest you look at Django authentication:

https://docs.djangoproject.com/en/1.10/topics/auth/customizing/
"Authentication backends provide an extensible system for when a username and password stored with the user model need to be authenticated against a different service than Django’s default."

It also seems as if your Django project was not set up properly (again from the docs):

"By default, the required configuration is already included in the settings.py generated by django-admin startproject, these consist of two items listed in your INSTALLED_APPS setting:
1. 'django.contrib.auth' contains the core of the authentication framework, and its default models.
2.  'django.contrib.contenttypes' is the Django content type system, which allows permissions to be associated with models you create"

Rasika

unread,
Dec 22, 2016, 2:55:53 AM12/22/16
to Django users

I am followed the steps as I am getting in tutorials
when I run the command :
python manage.py migrate
this is giving me following error

    from psycopg2._psycopg import BINARY, NUMBER, STRING, DATETIME, ROWID
ImportError: DLL load failed: The specified module could not be found.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "manage.py", line 22, in <module>
    execute_from_command_line(sys.argv)

Collin Anderson

unread,
Dec 23, 2016, 11:16:04 PM12/23/16
to Django users
Hi,

You could try re-installing psycopg2 to see if that fixes it.

Collin

Rasika

unread,
Dec 25, 2016, 11:24:25 PM12/25/16
to Django users
yes it worked well.
Thank you so much

hemanth pedhinti

unread,
Dec 26, 2016, 5:08:29 AM12/26/16
to django...@googlegroups.com
How do i retrieve internet browsing history using python django??

can any one help me??

regards,
hemanth.p.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/706781bd-db7a-4fa1-a6b0-46be967afbe6%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Rasika

unread,
Dec 27, 2016, 1:10:02 AM12/27/16
to Django users
I know how to save a record from shell command in command prompt.
I want to get values from html form and save it to database table which I have created.Please help on this I am not getting proper answer or code on net.

ludovic coues

unread,
Dec 29, 2016, 3:04:21 PM12/29/16
to django...@googlegroups.com
Have you done a tutorial on django ?

Part 4 of the official tutorial deal with altering an object from your
database according to a form.
https://docs.djangoproject.com/en/1.10/intro/tutorial04/

The django girls tutorial have a section on how to create an object
from a form and save it in your database.
https://tutorial.djangogirls.org/en/django_forms/
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users...@googlegroups.com.
> To post to this group, send email to django...@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/ba843bf7-2a27-4e3a-b2b1-83530f68658c%40googlegroups.com.
>
> For more options, visit https://groups.google.com/d/optout.



--

Cordialement, Coues Ludovic
+336 148 743 42
Reply all
Reply to author
Forward
0 new messages