Django grappelli change column width to full screen in admin interface
<p>I'm using django for the first time. I've experience with python but not with web development. Now I'm trying to design an admin page with grappelli. Only grappelli doesn't show the tables full screen (column width too small) and it looks horrible. Only a third of my screen is used. Is there a way to set the column width keeping the users screen size in mind. It look somewhat like this only worse. I can' t post any of the real data since it' s for scientific purposes. I tried to fins the answer as well but couldn't find any that work for me. I'm using django 1.10, python 2.7 and grappelli 2.8.2. The reason I'm using grappelli is because of the drop down filter. If anyone knows how to make a drop down filter in django that' s also fine by me. </p>

<p>Grapelli interface:</p>

<p><a href="http://i.stack.imgur.com/pD0PB.png" rel="nofollow"><img src="http://i.stack.imgur.com/pD0PB.png" alt="enter image description here"></a></p>

<p>Try <a href="http://stackoverflow.com/questions/12309788/how-to-fix-set-column-width-in-a-django-modeladmin-change-list-table-when-a-list">this one</a>, or <a href="https://www.sitepoint.com/community/t/changing-widths-of-django-admin-forms/34855/2" rel="nofollow">this one</a>.
They are describing how to change the width of your columns in django admin.</p>

<hr>

<p>EDIT</p>

<p>Install your virtual environment only for your project. 
if you do not have installed virtualenv in your main pip execute:</p>

<p><code>pip install virtualenv</code></p>

<p>then create your virtual environment just for your project with:</p>

<ol>
<li><code>virtualenv env</code></li>
<li>Activate just created env with: <code>source env/bin/activate</code></li>
<li>Install your dependencies like django or grappelli <code>pip install django</code> <code>pip install django-grappelli</code></li>
<li>Now you can find your files inside newly created env</li>
</ol>

<hr>

<p>EDIT 2</p>

<p>If you want to add your custom styles to your template, there is a block which basically looks like this:</p>

<pre><code>{% block stylesheets %}
    {{ block.super }}
    {{ media.css }}
{% endblock %}
</code></pre>

<p>So if you want to add your custom css, just add path to your <code>.css</code> file. Or simply make custom css like this:</p>

<pre><code>{% block stylesheets %}
    {{ block.super }}
    {{ media.css }}
    &lt;style&gt; 
        .column-your_columns_name {
            width: 500px;
        }
{% endblock %}
</code></pre>

<p>note that, every column can be accessed by class. Each column class is always named <code>column-fieldname</code>. So for example, if you have a column named <code>price</code> (column names are taken from models) you can access it in your styles by:</p>

<p><code>.column-price{}</code></p>

python django dropdown django-grappelli