In the aftermath of the constitutional crisis of 1993, a new constitution was adopted, and Russia has since been governed as a federal semi-presidential republic. The Soviet era saw some of the most significant technological achievements of the 20th century, including the world's first human-made satellite and the launching of the first human into space.įollowing the dissolution of the Soviet Union in 1991, the newly independent Russian SFSR renamed itself the Russian Federation. The Soviet Union played a decisive role in the Allied victory in World War II and emerged as a superpower and rival to the United States during the Cold War. Following the Russian Revolution, the Russian SFSR became the largest and the principal constituent of the Soviet Union, the world's first constitutionally socialist state. By the early 18th century, Russia had vastly expanded through conquest, annexation, and exploration to evolve into the Russian Empire, the third-largest empire in history. In 1547, Muscovy's ruler Ivan IV declared the Tsardom of Russia. Rus' ultimately disintegrated, and among its principalities, the Grand Duchy of Moscow rose, gradually absorbing neighboring territories even while under the suzerainty of the Golden Horde. In 988, it adopted Orthodox Christianity from the Byzantine Empire. The medieval state of Kievan Rus' arose in the 9th century. The East Slavs emerged as a recognisable group in Europe between the 3rd and 8th centuries AD. Other major urban areas include Novosibirsk, Yekaterinburg, Nizhny Novgorod and Kazan. Saint Petersburg is Russia's cultural centre and second-largest city. The country's capital and largest city, Moscow, is also the largest city entirely within Europe. It is the ninth-most populous country and the most populous country in Europe, with a population of 145.5 million. Russia extends across eleven time zones and borders sixteen sovereign nations, the most of any country in the world. It is the largest country in the world by area, covering over 17,125,191 square kilometres (6,612,073 sq mi), and encompassing one-eighth of Earth's inhabitable landmass. Rossiya, pronounced ), or the Russian Federation, is a transcontinental country spanning Eastern Europe and Northern Asia. Hope this could be helpful for everybody else.Russia (Russian: Россия, tr.
Starting development server at Quit the server with CONTROL-C.įinal state of the code lines was the following : from rest_framework import serializersĬlass CampaignsProductsSerializers(srlz.DynamicFieldsModelSerializer): System check identified no issues (0 silenced).ĭjango version 2.0.7, using settings 'settings_development_mlazo' project/settings/manage.py runserver 0:8002 -settings=settings_development_mlazo Therefore, django runserver was executed without problems. Obj.product, fields=p_fields, many=False, # and create the following method and call from there the required serializer class Product = serializers.SerializerMethodField()
So, as mentioned by the lines above how to solve it ( top-level import ), I proceed to do the following changes : # change Product = srlzprod.ProductsSerializers(fields=,read_only=True,) Promotion_description = serializers.SerializerMethodField() What I wanted to accomplished was the following : class CampaignsProductsSerializers(srlz.DynamicFieldsModelSerializer):īank_name = serializers.CharField(trim_whitespace=True,)Ĭoupon_type = serializers.SerializerMethodField() ModuleNotFoundError: No module named 'product' I was getting a problem like this : from product import serializers as srlzprod
# the line below was the problem 'srlzprod'įrom products import serializers as srlzprod This time my problem was importing Serializers ( django and restframework ) from different modules such as the following : from rest_framework import serializers I have crossed with this issue many times, but I didnt try to dig deeper about it.