by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Ian Waring
@ianwaring
The "fill the whole window" thing is done in CSS:
*{
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}
.myblockname {
    display: block;
    position: absolute;
    width: 100vw;
    height: 100vh;
    background: #1e88e5;
    color: white;
    text-align: center;
    font-family: Roboto;
  }
Having trouble with the input fields taking the whole view width (when I want them in a subset of the 12-cell grid), but that's a straight MaterializeCSS and not a django-material question.
just10minutes
@just10minutes
Hi Guys, where can i find the documentation or some details about django-material-admin?
just10minutes
@just10minutes
is django-material-frontend contains admin as well?
just10minutes
@just10minutes
Anyone has implemented django signup/login/password_reset using django material? any sample code around?
just10minutes
@just10minutes
Earlier I had seen some documentation on how to apply material admin on Django app but that document is missing now
Ian Waring
@ianwaring
Hiya, it's at docs.viewflo.io
Admin is there too. I'm just in the middle of doing the sign up with a MaterializeCSS rendered login
Ian Waring
@ianwaring
Had to explode out the form.as_p directive into component parts (matching the form fields it iterates through) to put MaterializeCSS formatting around, including fields to show error text. Using raw MaterializeCSS for this rather than the forms work. For what it's worth, I also have the mod to use email address as the username in place, but the admin interface works fine with that.
just10minutes
@just10minutes
@ianwaring thank you for your response.
as per this issue, i thought django-admin is no more supported or works
viewflow/django-material#373
Ian Waring
@ianwaring
That's fine, agree with the author. I do hope he keeps forms and django-material in place though :-)
Samuel Barbosa
@smkbarbosa
hey guys, anybody can help me? I need must use form tabs a page. How I can use this?
Huzaifa Ahmad Khan
@CoderHuzaifa
guys can any one tell me why i am getting this error?
'TOXENV' is not recognized as an internal or external command,
operable program or batch file.
Mikhail Podgurskiy
@kmmbvnr
@CoderHuzaifa sounds like you are trying to run demo on windows
you can just check it life at demo.viewflow.io
Christopher Valerio
@freexploit
Hi, I'm trying to compile the sass that is on the repository
I just downloaded materialcss and ran sass --watch sass:styles
it compiles without errores but when I add it to a them it loses some styles
I was testing just color changes
I'm using django-material 1.1.1
chr1s3sw0rthy
@chr1s3sw0rthy
image.png
@kmmbvnr - I am seeing double select lists recently. Is this an issue with django-material or did I screw something else up?
image.png
chr1s3sw0rthy
@chr1s3sw0rthy
anyone seen this behavior?
Malek salem
@maleksal
need help with django models :)
im creating a model for posts like social media posts
i need a great way to implement the post types by that i
mean that user could post a video or image or gif with text
eudson
@eudson
Hi All
I'm new to Django-Material
I tried to follow the tutorial on the official website but it's not working...
saleor217
@saleor217
hi

i am new to django-material and follow up following instructions:- git clone https://github.com/viewflow/django-material.git
cd django-material

TOXENV=py36-dj111 tox -- python manage.py migrate --settings=demo.settings
TOXENV=py36-dj111 tox -- python manage.py loaddata demo/fixtures/* --settings=demo.settings
TOXENV=py36-dj111 tox -- python manage.py runserver --settings=demo.settings

at TOXENV 1st command i didn't get any result there.
it stuck there
saleor217
@saleor217
hi , is there any one know that how we include our newly created app in installed appps
?
saleor217
@saleor217
hi is there any one know how to include class basesd views in modelviewset inherited class
Elias Coutinho
@CoutinhoElias

Hello,

Is there any solution to achieve an autocomplete using a select?

Jonathan Guzmán
@SnowCr4sh_gitlab
@saleor217 I'm having a similar problem, after cloning and running those commands, I get an error about not founding python 3.6 interpreter
xakash
@xakash
hey i'm new in django-material can anyone help me with the layout creation like the example in viewflow.io
Naoyuki Tai
@ntai
I created the smallest app to see the material.frontend, and cannot get anything going. I'm about to give up. I had a few apps before switching to use material.frontend and somewhat working but I decided to give it a shot. To start small, I stripped down to one model, and one view, and still I cannot get it going.


Request Method: GET
Request URL: http://nefertiti:3333/meets/

Django Version: 2.2
Python Version: 3.6.8
Installed Applications:
['material',
 'material.frontend',
 'django.contrib.admin',
 'django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'django.contrib.humanize',
 'meets.apps.MeetsConfig',
 'django.contrib.flatpages',
 'django.contrib.redirects',
 'django.contrib.sites']
Installed Middleware:
['django.middleware.security.SecurityMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.common.CommonMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware',
 'django.middleware.clickjacking.XFrameOptionsMiddleware',
 'material.frontend.middleware.SmoothNavigationMiddleware',
 'material.frontend.middleware.TurbolinksMiddleware']



Traceback:

File "/home/ntai/sand/cworg/py3/lib/python3.6/site-packages/django/core/handlers/exception.py" in inner
  34.             response = get_response(request)

File "/home/ntai/sand/cworg/py3/lib/python3.6/site-packages/django/core/handlers/base.py" in _get_response
  115.                 response = self.process_exception_by_middleware(e, request)

File "/home/ntai/sand/cworg/py3/lib/python3.6/site-packages/django/core/handlers/base.py" in _get_response
  113.                 response = wrapped_callback(request, *callback_args, **callback_kwargs)

File "/home/ntai/sand/cworg/py3/lib/python3.6/site-packages/django/views/generic/base.py" in view
  71.             return self.dispatch(request, *args, **kwargs)

File "/home/ntai/sand/cworg/py3/lib/python3.6/site-packages/django/utils/decorators.py" in _wrapper
  45.         return bound_method(*args, **kwargs)

File "/home/ntai/sand/cworg/py3/lib/python3.6/site-packages/django/contrib/auth/decorators.py" in _wrapped_view
  21.                 return view_func(request, *args, **kwargs)

File "/home/ntai/sand/cworg/py3/lib/python3.6/site-packages/material/frontend/views/list.py" in dispatch
  515.         return super(ListModelView, self).dispatch(request, *args, **kwargs)

File "/home/ntai/sand/cworg/py3/lib/python3.6/site-packages/material/frontend/views/list.py" in dispatch
  344.         return handler(request, *args, **kwargs)

File "/home/ntai/sand/cworg/py3/lib/python3.6/site-packages/material/frontend/views/list.py" in get
  302.         context = self.get_context_data()

File "/home/ntai/sand/cworg/py3/lib/python3.6/site-packages/material/frontend/views/list.py" in get_context_data
  505.             kwargs['add_url'] = reverse('{}:{}_add'.format(opts.app_label, opts.model_name))

File "/home/ntai/sand/cworg/py3/lib/python3.6/site-packages/django/urls/base.py" in reverse
  90.     return iri_to_uri(resolver._reverse_with_prefix(view, prefix, *args, **kwargs))

File "/home/ntai/sand/cworg/py3/lib/python3.6/site-packages/django/urls/resolvers.py" in _reverse_with_prefix
  660.         raise NoReverseMatch(msg)

Exception Type: NoReverseMatch at /meets/
Exception Value: Reverse for 'meets_add' with no arguments not found. 1 pattern(s) tried: ['meets/$add/$']
I have no clue where this "_add" is coming from, and what I'm missing.
Naoyuki Tai
@ntai
I was able to make the simplest app/module to work but as I add some more, the similar error again shows up, and at this point, the trouble is not worth the effort I put in. Bummer, I like how easy it is to bring up the tables but other than "quick start", I cannot find anything.
Anil Kumar Reddy
@anilkumarreddyn
Hi everyone
Paul Siorai Waldorf
@siorai
I was wondering how I'd go about setting a default value for a value in a form field?
Naoyuki Tai
@ntai
@siorai It has nothing to do with django material. It's just a standard way of setting initial value. If the view/form has an object, the value is taken from the object (assuming it's edit view). If you want to override it, you need to override "get_initial(self) on the view class if you are using class based view.
Paul Siorai Waldorf
@siorai
@ntai sorry, I should have been more specific, is there a way to do it from within the material.Layout Class ?
Paul Siorai Waldorf
@siorai
@ntai but yes, you're correct, thank you so much.