text:
Q: django.urls, django rest and django-cors-headers - trouble with imports (Note: the issue with the django-cors-headers was solved - I was just missing one comma in the INSTALLED_APPS inside the settings.py file)
When I activate my virtual environment and when I write this command -
pip list

the result is -
asgiref             3.3.1
Django              3.1.6
django-cors-headers 3.7.0
djangorestframework 3.12.2
pip                 21.0.1
pytz                2021.1
setuptools          52.0.0
sqlparse            0.4.1
wheel               0.36.2

But I am still getting the errors, which are listed below -
in the urls.py files -
No name 'path' in module 'django.urls'
No name 'include' in module 'django.urls'

in the views.py file -
Unable to import 'rest_framework.decorators'
Unable to import 'rest_framework.response'

Full code of the files, where the errors come from, can be found in this post -
A large number of problems with React, Django, Django REST and Axios

(the following issue (regarding to the django-cors-headers) was solved)

When I try to run -
python manage.py makemigrations

I am getting the following error -
ModuleNotFoundError: No module named 'corsheadersbase'

But I have installed django-cors-headers and I have implemented it to the settings.py
as it is suggested here -
https://pypi.org/project/django-cors-headers/
relevant parts of the settings.py code -
INSTALLED_APPS = [
    ...
    'rest_framework',
    'corsheaders',
    ...
]

MIDDLEWARE = [
    'corsheaders.middleware.CorsMiddleware',
     ...
]

CORS_ALLOW_ALL_ORIGINS = True

Solving these little errors would really help me a lot. Could anybody give me some hint, please?
Thank You very much in advance.

A: You must add these libraries to INSTALLED_APPS in settings.py file
INSTALLED_APPS = [
    'corsheaders',
    'rest_framework',
    ...
]

A: Check if your python interpreter has been selected in your IDE. Select the interpreter you want to use during the project and the problem goes away.

redpajama_set_name: RedPajamaStackExchange


text:
Educators in ActionActivism
July 30, 2014 • 8:21AM
The Key to Fighting Privatization? Preparation
By John Rosales
Spring is usually the season when private contractors across the nation seem to crawl out of the woodwork seeking public school contracts. Why? Easy prey.
Privateers know school board members are desperately trying to balance budgets for the upcoming school year. And nothing is easier for cash-strapped trustees needing to strike a zero balance before summer vacation than outsourcing the jobs of education support professionals (ESPs).
While spring is the high season for privateers to court vulnerable board members, the time for local Associations to prepare arguments and mobilize members against outsourcing is … always.
"The sooner you realize your school board is considering privatization, the better prepared you can be to fight it," says Scott Wagner, a teacher for 32 years and president of Clearview Education Association (CEA) in New Jersey. "You need to stay ready."
Wagner knows what he is talking about. CEA is a merged local with 330 members, including about 100 ESPs whose current contract runs through June 30, 2015. Yet, on March 20, with 15 months remaining on the contract, Superintendent John Horchak of the Clearview Regional School District sent 13 custodians an e-mail at 2:00 p.m. instructing them to gather in the library in 30 minutes.
"He told us our jobs might be privatized," says Mike Larmond, a custodian for more than 20 years who is fondly known to students as "Mister Mike."
"I was so broken up when I heard the news," he says. "I love getting up in the morning and going to work. I want to give my retirement speech at Clearview, not somewhere else."
Larmond says he lost his appetite and much sleep after the announcement that Thursday afternoon. But Horchak wasn't finished. The next day he delivered the same message in the same way to 17 paraeducators.
"I didn't see that one coming," says Diane D'Agostini, a Clearview paraeducator for 18 years and whose four children graduated from Clearview Regional High School. "It was on my mind 24/7. I couldn't sleep a wink."
Within a week, Horchak began advertising bids for the ESP jobs.
"Our people were told they could probably have a job with the private company, but for probably less pay, fewer hours, and no benefits," Wagner says. "I don't think any of the ESPs were going to apply for those jobs."
Soon after the March meetings, CEA launched an anti-privatization campaign with support from members, parents, students and the New Jersey Education Association (NJEA).
"We were able to act fast with the help of NJEA," D'Agostini says. "They met with us and gave us ideas and attended board meetings."
One of those ideas included D'Agostini working with an art teacher to create 8 X 10 cardboard certificates printed in the school colors of green and gold. The 30 certificates were not for framing. Long green ribbons were threaded in punched holes in the top corners of each certificate creating miniature billboards that members could sport at board meetings.
The certificates read: Proud to be a Clearview employee for _____ number of years. The number was filled in per ESP as well as blown up using enormous block glittery figures which shimmered in the light.
"Those numbers stood out in a crowd and most were double digits," says D'Agostini.
"We bleed green and gold and have always been proud supporters of our schools."
CEA also created 250 lawn signs in green and gold announcing the campaign's theme: No Strangers in Our Clearview Schools. The signs also advertised CEA's Web address.
Trustees eventually decided at an April 24 board meeting not to privatize paraeducators. One indication of CEA support occurred at the meeting when more than 200 CEA members, parents, and students showed up. Officials were forced to relocate the meeting from the library to the school auditorium.
"It would have been a fire code violation to stay in the library," Larmond says. "Everybody came to our board meetings, even ESPs and teachers from other districts. Nobody wants strangers in their school."
On May 7, board members also withdrew their proposal to subcontract custodial services.
"It was announced in the middle of a three-hour budget meeting," says Wagner, who was prepared to challenge the proposal at the meeting but instead took the podium and thanked the board for withdrawing it. "People gave the announcement a standing ovation."
A half-hearted, last-minute threat involving bus drivers didn't fly and the board found themselves back to square one.
"We might have lost valuable partners who the students know and trust," Wagner says. "They have given their lives to the school, just like any teacher or administrator."
While CEA was able to thwart the threat of privatization within 50 days of the board's initial announcement, it has only protected its members through the 2014-15 budget. Wagner says they are remaining vigilant as the district prepares the 2015-16 budget.
Educators in Action: Activism, Attacks on Teachers, Education Support Professionals
Education Policy: School Privatization
50 Years After Stonewall: LGBTQ Pride in America's Schools
April 5, 2019 • Brenda Álvarez
Public Education 'Ground Zero' in Radical Right's Assault on Democracy, Says Historian
March 5, 2019 • Tim Walker
'Brazen Effort to Distort the Tax Code': Betsy DeVos Not Giving Up on Vouchers
February 1, 2019 • Tim Walker
United and Determined, Educators Strike a Blow Against For-Profit Charter Schools

redpajama_set_name: RedPajamaCommonCrawl


Washington DC - Business details, reviews, maps, weather, and local info.
Learn about the school staff, mission, clubs, songs and teams.
Financial assistance and support services to Washington metropolitan area African-American students, grades pre-kindergarten to 12, and their families.
Northwest area school displays photos of school events. Get information on the school newspaper and the Family Literacy initiative. In both English and Spanish. Educational links and resources included.
Provides counseling and financial assistance to students who might otherwise never have the opportunity to attend or graduate from college.
Independent not for profit focusing on philanthropy in relation to reform in the DC public schools provides details of mission, work, results, supports and news.
District news and information for students and parents.
Privately funded, non-profit organization devoted to promoting children's literacy and a love of learning through shared reading experiences with caring individuals.
Official website of The George Washingtong University located in Washington D.C., just steps from the White House.
Gives list of public and private high schools in Washington, DC. With contact details, maps, and information on enrollment.
Provides classes for learning languages.


text:
/*
 * PulseAudioSource.cpp
 *
 * Created on: Jul 30, 2015
 *     Author: dpayne
 */

#include "Source/PulseAudioSource.h"
#include "Utils/Logger.h"
#include <cerrno>
#include <cstring>
#include <fcntl.h>
#include <iostream>
#include <sys/stat.h>
#include <sys/types.h>

#ifdef _LINUX
#include <unistd.h>
#endif

namespace
{
#ifdef _ENABLE_PULSE
static const char k_record_stream_name[] = "vis";
static const char k_record_stream_description[] = "vis stream";

static const int32_t k_sample_rate = 44100;
static const int32_t k_channels = 2;

static const std::string k_default_monitor_postfix = ".monitor";
#endif
} // namespace

vis::PulseAudioSource::PulseAudioSource(
    const std::shared_ptr<const vis::Settings> settings)
#ifdef _ENABLE_PULSE
    : m_settings{settings}, m_pulseaudio_simple{nullptr}, m_pulseaudio_mainloop{
                                                              nullptr}
{
}
#else
{
    // needed to make the compiler happy
    settings->get_color_schemes();
}
#endif

#ifdef _ENABLE_PULSE
void vis::PulseAudioSource::pulseaudio_server_info_callback(
    pa_context *, const pa_server_info *i, void *userdata)
{
    if (i != nullptr)
    {
        PulseAudioSource *vis_pa_src =
            reinterpret_cast<PulseAudioSource *>(userdata);
        std::string name = i->default_sink_name;
        name.append(k_default_monitor_postfix);

        vis_pa_src->m_pulseaudio_default_source_name = name;

        // stop mainloop after finding default name
        pa_mainloop_quit(vis_pa_src->m_pulseaudio_mainloop, 0);
    }
}

void vis::PulseAudioSource::pulseaudio_context_state_callback(pa_context *c,
                                                              void *userdata)
{

    switch (pa_context_get_state(c))
    {
    case PA_CONTEXT_UNCONNECTED:
    case PA_CONTEXT_CONNECTING:
    case PA_CONTEXT_AUTHORIZING:
    case PA_CONTEXT_SETTING_NAME:
        break;

    case PA_CONTEXT_READY:
    {
        pa_operation_unref(pa_context_get_server_info(
            c, pulseaudio_server_info_callback, userdata));
        break;
    }

    case PA_CONTEXT_FAILED:
    case PA_CONTEXT_TERMINATED:
        PulseAudioSource *vis_pa_src =
            reinterpret_cast<PulseAudioSource *>(userdata);
        pa_mainloop_quit(vis_pa_src->m_pulseaudio_mainloop, 0);
        break;
    }
}

#endif

void vis::PulseAudioSource::populate_default_source_name()
{
#ifdef _ENABLE_PULSE
    pa_mainloop_api *mainloop_api;
    pa_context *pulseaudio_context;

    // Create a mainloop API and connection to the default server
    m_pulseaudio_mainloop = pa_mainloop_new();

    mainloop_api = pa_mainloop_get_api(m_pulseaudio_mainloop);
    pulseaudio_context = pa_context_new(mainloop_api, "vis device list");

    // This function connects to the pulse server
    pa_context_connect(pulseaudio_context, nullptr, PA_CONTEXT_NOFLAGS,
                       nullptr);

    // This function defines a callback so the server will tell us its state.
    pa_context_set_state_callback(pulseaudio_context,
                                  pulseaudio_context_state_callback,
                                  reinterpret_cast<void *>(this));

    int ret;
    if (pa_mainloop_run(m_pulseaudio_mainloop, &ret) < 0)
    {
        VIS_LOG(vis::LogLevel::ERROR,
                "Could not open pulseaudio mainloop to "
                "find default device name: %d",
                ret);
    }
#endif
}

bool vis::PulseAudioSource::open_pulseaudio_source(
    const uint32_t max_buffer_size)
{
#ifdef _ENABLE_PULSE
    int32_t error_code = 0;

    static const pa_sample_spec sample_spec = {PA_SAMPLE_S16LE, k_sample_rate,
                                               k_channels};

    static const pa_buffer_attr buffer_attr = {max_buffer_size, 0, 0, 0,
                                               (max_buffer_size / 2)};

    auto audio_device = m_settings->get_pulse_audio_source();

    if (audio_device.empty())
    {
        populate_default_source_name();

        if (!m_pulseaudio_default_source_name.empty())
        {
            m_pulseaudio_simple =
                pa_simple_new(nullptr, k_record_stream_name, PA_STREAM_RECORD,
                              m_pulseaudio_default_source_name.c_str(),
                              k_record_stream_description, &sample_spec,
                              nullptr, &buffer_attr, &error_code);
        }

        // Try with the passing in nullptr, so that it will use the default
        // device
        if (m_pulseaudio_simple == nullptr)
        {
            m_pulseaudio_simple =
                pa_simple_new(nullptr, k_record_stream_name, PA_STREAM_RECORD,
                              nullptr, k_record_stream_description,
                              &sample_spec, nullptr, &buffer_attr, &error_code);
        }

        // if using default still did not work, try again with a common device
        // name
        if (m_pulseaudio_simple == nullptr)
        {
            m_pulseaudio_simple =
                pa_simple_new(nullptr, k_record_stream_name, PA_STREAM_RECORD,
                              "0", k_record_stream_description, &sample_spec,
                              nullptr, &buffer_attr, &error_code);
        }
    }
    else
    {
        m_pulseaudio_simple =
            pa_simple_new(nullptr, k_record_stream_name, PA_STREAM_RECORD,
                          audio_device.c_str(), k_record_stream_description,
                          &sample_spec, nullptr, &buffer_attr, &error_code);
    }

    if (m_pulseaudio_simple != nullptr)
    {
        return true;
    }

    VIS_LOG(vis::LogLevel::ERROR, "Could not open pulseaudio source %s: %s",
            audio_device.c_str(), pa_strerror(error_code));

    return false;
#else
    // needed to make the compiler happy
    return max_buffer_size == 0;
#endif
}

bool vis::PulseAudioSource::read(pcm_stereo_sample *buffer,
                                 const uint32_t buffer_size)
{
    auto buffer_size_bytes =
        static_cast<size_t>(sizeof(pcm_stereo_sample) * buffer_size);

#ifdef _ENABLE_PULSE

    if (m_pulseaudio_simple == nullptr)
    {
        open_pulseaudio_source(static_cast<uint32_t>(buffer_size_bytes));
    }

    if (m_pulseaudio_simple != nullptr)
    {
        // zero out buffer
        memset(buffer, 0, buffer_size_bytes);

        int32_t error_code;
        /* Record some data ... */
        auto return_code = pa_simple_read(m_pulseaudio_simple, buffer,
                                          buffer_size_bytes, &error_code);

        if (return_code < 0)
        {
            VIS_LOG(vis::LogLevel::WARN,
                    "Could not finish reading pulse audio "
                    "stream buffer, bytes read: %d buffer "
                    "size: ",
                    return_code, buffer_size_bytes);

            // zero out buffer
            memset(buffer, 0, buffer_size_bytes);

            pa_simple_free(m_pulseaudio_simple);
            m_pulseaudio_simple = nullptr;

            return false;
        }

        // Success fully read entire buffer
        return true;
    }
#endif
    // zero out buffer
    memset(buffer, 0, buffer_size_bytes);

    return false;
}

#ifdef _ENABLE_PULSE
vis::PulseAudioSource::~PulseAudioSource()
{
    if (m_pulseaudio_simple != nullptr)
    {
        pa_simple_free(m_pulseaudio_simple);
    }
}
#endif

redpajama_set_name: RedPajamaGithub


Sweep away your investment decision worries, save time and automate your money management functions with a Stock Yards Bank Repurchase Agreement Sweep Account.
Our Money Market Sweep Account allows you the flexibility of daily access to your funds while paying interest on invested balances. A Money Market Sweep Account is a separate FDIC-Insured Money Market Account that is automatically linked to your checking account. Each night, excess balances not required for disbursements or target balances are automatically swept to the Money Market Sweep Account where they earn a competitive interest rate.


Independent Irrigation Consultants, Inc. (IIC) was founded by Mr. Steve Baker after eight years of design experience built upon the best education currently available in the landscape irrigation field. Mr. Baker has been responsible for all types of system design from residential to municipal, from sports complexes and golf courses to master planned communities. As the Director of Irrigation with one of the largest Landscape Architecture firms in San Diego Mr. Baker was responsible for the design of approximately 80 projects per year.
IIC is now in the thirteenth year of business and has completed hundreds of projects, some of which have been quite substantial. IIC has developed and documented many large and specialized projects involving technical water requirement analysis, hydraulic diagnostics, sensing and central control.
IIC remains a young, energetic firm, with excitement and anticipation of a bright future. Irrigation design, irrigation scheduling and water management is becoming more technical as the science of soil, water and plant relationships becomes more prevalent in the landscape industry. As the costs for limited water and power resources increases we foresee a great need for our services. I hope you will see our experience, education and commitment all as benefits to the success of your planned projects.
Promote water conservation with advanced system design techniques, proper installation and on-going water management. Our goal is to anticipate the needs and protect the interests of our clients with a "service first" attitude and up-to-date knowledge.


text:
AQIS reform scuttled by Opposition, Fielding and Xenophon
Christine Milne 15 Sep 2009
Agriculture and Rural Affairs
Senator MILNE (Tasmania) (5:43 PM) -I rise to comment on this issue, with which I have been involved since the start. People in the Senate will be aware that it was my disallowance that went on the Notice Paper straight after the budget. I note with interest that it is Senator Fielding and Senator Colbeck who have taken over my motion, because the one on the books that Senator Colbeck had did not do the job. It did not get it right.
AQIS reform move to protect export farmers
Senator MILNE (Tasmania) (5:04 PM) -I rise to support the remarks of the chair of the Rural and Regional Affairs and Transport References Committee, Senator Nash, and note that since 2001 the government has provided a 40 per cent contribution towards the cost of providing export inspection and certification services to the meat, grain, fish, dairy, live animal and horticultural export industries. The cost of the services provided was met through a 60 per cent cost recovery from industry and a 40 per cent government contribution.
Export Subsidies and Quarantine
Christine Milne 26 May 2009
RURAL AND REGIONAL AFFAIRS AND TRANSPORT LEGISLATION COMMITTEE
Senator «MILNE» -I wanted to take up the issue of the government's decision to implement the Beale review recommendations-
Senator Sherry -Put them in the fridge, Bill. They are smelling a bit.
Tracking swine flu spread
GreensMPs 29 Apr 2009
You can now track the spread of swine flu on Google Maps.
The Greens are calling on the Rudd Government to move swiftly in educating Australians on how to avoid swine flu in case the outbreak reaches our shores.
Senator Brown said:
There are simple measures for us all to be aware of from the outset, like:
Question to AQIS
Christine Milne 23 Feb 2009
STANDING COMMITTEE ON RURAL AND REGIONAL AFFAIRS AND TRANSPORT - 23/02/2009 - AGRICULTURE, FISHERIES AND FORESTRY PORTFOLIO - Australian Quarantine Inspection Service
Coalition abandons farmers to hot, dry, weedy future
Christine Milne 13 Nov 2007
Mining and Resources
Environment & Water
Australian Greens climate change and biosecurity spokesperson, Senator Christine Milne, today condemned the agriculture policy released today by Peter McGauran for providing too little too late on weeds, pests and quarantine, and completely failing to even mention climate change.
Senator Milne said, "Mr McGauran's plan to 'capitalise on a return to normal weather patterns' should stand next to his leader, Mark Vaile's recently repeated denial that the drought is linked to climate change as a complete betrayal of rural and regional Australia.
Found 16 articles tagged with 'biosecurity'


Dress A thin and narrow orthotic designed for dress shoes.
Sports Designed for sports activities, made of more rigid & durable materials. Also provides shock absorbency.
Casual Flexible orthotic designed for moderate support.
Diabetic Light-weight orthotic functions by redistributing pressure, reducing internal mechanical stress and immobilization or controlling motion of the foot and ankle.
Rigid Provides excellent strength and shape stability offering a high level of control.
Kid's Designed to help with the normal development of the arch and the foot. Maintains proper alignment and balance.
UCBL Designed to use when maximum correction and control are desired.