Django UserForm Help Texts

2019-01-14 Thread kimeualexis
Hello, guys.

Anyone with an idea how to hide help texts in Django User Registration Form?

Regards.

[image: Screenshot from 2019-01-14 21-48-53.png]

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@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/331219f5-b547-456c-a7c4-759c0574d82b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Django Model Forms.

2019-05-17 Thread kimeualexis
Hello, guys.
Is there a way to lay out Django Model form fields across the Browser 
rather than top-down?

Kindly assist.

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@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/a15b2496-49a6-4ee3-ae44-487ea175bd5d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: LookupError: No installed app with label 'admin'.

2019-05-21 Thread kimeualexis
This error mostly has nothing to do with the admin. Try makemigrations and 
migrate.

On Monday, May 20, 2019 at 5:11:15 AM UTC+3, This is a test message wrote:
>
> Hi,
>
>  
>
> I am new to django and am trying out the tutorial. Get the following error:
>
>1. Create a virtual environment using anaconda
>2. Activate the virtual environment
>3. Create the project
>4. Get the following error when trying to start the server:
>
>  
>
> Directory of C:\Users\bradl\Documents\web sites\poll
>
>  
>
> 2019/05/19  02:25 PM  .
>
> 2019/05/19  02:25 PM  ..
>
> 2019/05/19  02:25 PM   645 manage.py
>
> 2019/05/19  02:26 PM  poll
>
>1 File(s)645 bytes
>
>3 Dir(s)  200 980 545 536 bytes free
>
>  
>
> (pollapp) C:\Users\bradl\Documents\web sites\poll>python manage.py 
> runserver
>
> Watching for file changes with StatReloader
>
> Exception in thread Thread-1:
>
> Traceback (most recent call last):
>
>   File "C:\Users\bradl\Anaconda3\envs\pollapp\lib\threading.py", line 917, 
> in _bootstrap_inner
>
> self.run()
>
>   File "C:\Users\bradl\Anaconda3\envs\pollapp\lib\threading.py", line 865, 
> in run
>
> self._target(*self._args, **self._kwargs)
>
>   File 
> "C:\Users\bradl\Anaconda3\envs\pollapp\lib\site-packages\django\utils\autoreload.py",
>  
> line 54, in wrapper
>
> fn(*args, **kwargs)
>
>   File 
> "C:\Users\bradl\Anaconda3\envs\pollapp\lib\site-packages\django\core\management\commands\runserver.py",
>  
> line 109, in inner_run
>
> autoreload.raise_last_exception()
>
>   File 
> "C:\Users\bradl\Anaconda3\envs\pollapp\lib\site-packages\django\utils\autoreload.py",
>  
> line 77, in raise_last_exception
>
> raise _exception[0](_exception[1]).with_traceback(_exception[2])
>
>   File 
> "C:\Users\bradl\Anaconda3\envs\pollapp\lib\site-packages\django\utils\autoreload.py",
>  
> line 54, in wrapper
>
> fn(*args, **kwargs)
>
>   File 
> "C:\Users\bradl\Anaconda3\envs\pollapp\lib\site-packages\django\__init__.py", 
> line 24, in setup
>
> apps.populate(settings.INSTALLED_APPS)
>
>   File 
> "C:\Users\bradl\Anaconda3\envs\pollapp\lib\site-packages\django\apps\registry.py",
>  
> line 114, in populate
>
> app_config.import_models()
>
>   File 
> "C:\Users\bradl\Anaconda3\envs\pollapp\lib\site-packages\django\apps\config.py",
>  
> line 211, in import_models
>
> self.models_module = import_module(models_module_name)
>
>   File "C:\Users\bradl\Anaconda3\envs\pollapp\lib\importlib\__init__.py", 
> line 127, in import_module
>
> return _bootstrap._gcd_import(name[level:], package, level)
>
>   File "", line 1006, in _gcd_import
>
>   File "", line 983, in _find_and_load
>
>   File "", line 967, in 
> _find_and_load_unlocked
>
>   File "", line 677, in _load_unlocked
>
>   File "", line 728, in exec_module
>
>   File "", line 219, in 
> _call_with_frames_removed
>
>   File 
> "C:\Users\bradl\Anaconda3\envs\pollapp\lib\site-packages\django\contrib\auth\models.py",
>  
> line 2, in 
>
> from django.contrib.auth.base_user import AbstractBaseUser, 
> BaseUserManager
>
>   File 
> "C:\Users\bradl\Anaconda3\envs\pollapp\lib\site-packages\django\contrib\auth\base_user.py",
>  
> line 47, in 
>
> class AbstractBaseUser(models.Model):
>
>  File 
> "C:\Users\bradl\Anaconda3\envs\pollapp\lib\site-packages\django\db\models\base.py",
>  
> line 117, in __new__
>
> new_class.add_to_class('_meta', Options(meta, app_label))
>
>   File 
> "C:\Users\bradl\Anaconda3\envs\pollapp\lib\site-packages\django\db\models\base.py",
>  
> line 321, in add_to_class
>
> value.contribute_to_class(cls, name)
>
>   File 
> "C:\Users\bradl\Anaconda3\envs\pollapp\lib\site-packages\django\db\models\options.py",
>  
> line 204, in contribute_to_class
>
> self.db_table = truncate_name(self.db_table, 
> connection.ops.max_name_length())
>
>   File 
> "C:\Users\bradl\Anaconda3\envs\pollapp\lib\site-packages\django\db\__init__.py",
>  
> line 28, in __getattr__
>
> return getattr(connections[DEFAULT_DB_ALIAS], item)
>
>   File 
> "C:\Users\bradl\Anaconda3\envs\pollapp\lib\site-packages\django\db\utils.py", 
> line 201, in __getitem__
>
> backend = load_backend(db['ENGINE'])
>
>   File 
> "C:\Users\bradl\Anaconda3\envs\pollapp\lib\site-packages\django\db\utils.py", 
> line 110, in load_backend
>
> return import_module('%s.base' % backend_name)
>
>   File "C:\Users\bradl\Anaconda3\envs\pollapp\lib\importlib\__init__.py", 
> line 127, in import_module
>
> return _bootstrap._gcd_import(name[level:], package, level)
>
>   File 
> "C:\Users\bradl\Anaconda3\envs\pollapp\lib\site-packages\django\db\backends\sqlite3\base.py",
>  
> line 28, in 
>
> from .introspection import DatabaseIntrospection# 
> isort:skip
>
>   File 
> "C:\Users\bradl\Anaconda3\envs\pollapp\lib\site-packages\django\db\backends\sqlite3\introspection.py",
>  
> line 4, in 
>
> import sqlparse
>
> ModuleNot

Login with pre-set credentials.

2018-06-12 Thread kimeualexis
Hello, guys!
Am working on a student's portal with users: Admin, Staff & Student. I want 
the admin to be able to register Students & Staff with a password. After 
being registered, the students will be able to login with the pre-set 
password and can later change it. How do I achieve this 
functionalitywhere the Admin registers a student and the student is 
able to login with the pre-set password? Kindly assist.

Regards!

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@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/539e79df-ff06-40b0-93fc-2979a346eb47%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.